tree-optimization/111233 - loop splitting miscompile
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr111233.c
blob30934033ae0d069a21e2b83877d9801119378d57
1 /* { dg-do run } */
2 /* { dg-additional-options "-fsplit-loops" } */
4 int a, c, f;
5 char b, g;
6 int *d = &c;
7 long e;
8 int main()
10 for (; e != 25; e++) {
11 f = -17;
12 for (; f <= 0; f = f + 7) {
13 g = f ? 0 : b;
14 a = *d;
17 if (a != 0)
18 __builtin_abort ();