PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr53550.c
blob1008f43a7e5c491b32395ad282cc7396d5b595b8
1 /* PR tree-optimization/53550 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
5 int *
6 foo (int *x)
8 int *a = x + 10, *b = x, *c = a;
9 while (b != c)
10 *--c = *b++;
11 return x;