Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49069.c
blobf0fe1f2f0804f4a12e21643d01435c19ae6e7404
1 /* PR target/49069 */
2 /* { dg-do compile } */
3 /* { dg-options "-Os -fno-tree-forwprop -Wno-div-by-zero" } */
5 int a;
6 const unsigned long long b[1] = { 1ULL };
7 extern void bar (int);
9 void
10 foo (void)
12 for (a = 0; a == 1; a = 2)
14 bar (b[0] == (a == 0 ? a : a / 0));