Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / tree-ssa / pr22230.c
blob4d65349093454a0869aca85f39687a5df8fa140b
1 /* { dg-do run } */
2 /* { dg-options "-O1 -ftree-vrp" } */
4 /* PR tree-optimization/22230
6 The meet of the ranges in "i*i" was not computed correctly, leading
7 gcc to believe that a was equal to 0 after the loop. */
9 extern void abort (void) __attribute__((noreturn));
11 int main (void)
13 long a, i;
15 for (i = 0; i < 5; i++)
16 a = i * i;
17 if (a != 16)
18 abort ();
19 return 0;