Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr39455.c
blob8e8c67034f2c0dd2cb479c3c82d0f4ba0540a1b3
1 /* PR tree-optimization/39455 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
5 void
6 foo (char *x, unsigned long y, unsigned char *z)
8 unsigned int c[256], *d;
10 for (d = c + 1; d < c + 256; ++d)
11 *d += d[-1];
12 x[--c[z[y]]] = 0;