]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/Warray-bounds-87.c
1 /* PR middle-end/101671 - pr83510 fails with -Os because threader confuses
4 { dg-options "-Os -Wall" } */
7 extern void sink (unsigned int);
11 static unsigned int g (int i
, int j
)
16 return a
[i
]; // no warning here
22 for (int i
= 0; i
< 10; i
++)
29 static unsigned int h (int i
, int j
)
36 return a
[i
]; // { dg-bogus "-Warray-bounds" "pr101671" }
43 for (int i
= 0; i
< 10; i
++)