1 /* PR tree-optimization/59124 */
2 /* { dg-options "-O3 -Warray-bounds" } */
3 
4 unsigned baz[6];
5 
foo(unsigned * bar,unsigned n)6 void foo(unsigned *bar, unsigned n)
7 {
8   unsigned i, j;
9 
10   if (n > 6)
11     n = 6;
12 
13   for (i = 1; i < n; i++)
14     for (j = i - 1; j > 0; j--)
15       bar[j - 1] = baz[j - 1];
16 }
17 
18