Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr41345.c
blobb2c72c72fb13a60a4da3fd6c0a578f66fd1718f1
1 /* PR bootstrap/41345 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -g -fcompare-debug" } */
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */
6 void
7 foo (int *x)
9 int a;
10 for (a = 0; a < 2; a++)
11 if (x[a])
12 goto lab;
13 __builtin_unreachable ();
14 lab:;