PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / Warray-bounds-9.c
blob92bcd4e5ce7a2eb3b58287b02ef2fcc53852fd27
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -Warray-bounds" } */
4 int a[8];
6 void
7 test(unsigned int n)
9 unsigned int i;
10 unsigned int j;
11 if (n<8)
12 for (j=0;j<n;j++)
14 i = j;
16 a[i+1]=a[i];
17 while (i--);