PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / Warray-bounds-19.c
blobe2f9661cde3646a11746a2464437b9c7c9a34788
1 /* PR tree-optimization/59124 */
2 /* { dg-options "-O3 -Warray-bounds" } */
4 unsigned baz[6];
6 void foo(unsigned *bar, unsigned n)
8 unsigned i, j;
10 if (n > 6)
11 n = 6;
13 for (i = 1; i < n; i++)
14 for (j = i - 1; j > 0; j--)
15 bar[j - 1] = baz[j - 1];