tree-optimization/111233 - loop splitting miscompile
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr110243.c
blob07dffd95d4d4ac9edbb90c50d89bdd2742510585
1 /* { dg-do run } */
2 /* { dg-require-effective-target lp64 } */
4 #define X 1100000000
5 unsigned char a;
6 long b = X;
7 int c[9][1];
8 unsigned d;
9 static long *e = &b, *f = &b;
10 int g() {
11 if (a && a <= '9')
12 return '0';
13 if (a)
14 return 10;
15 return -1;
17 int main() {
18 d = 0;
19 for (; (int)*f -(X-1) + d < 9; d++)
20 c[g() + (int)*f + ((int)*e - X) -(X-1) + d]
21 [0] = 0;