Merge from mainline.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp10.c
blob5a745845948644f675dc6122e9819c945b85bf87
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 extern void abort (void);
6 foo (int k, int j)
8 if (k >= 10)
10 if (j > k)
12 /* We should fold this to if (0). */
13 if (j < 10)
14 abort ();
18 return j;
21 main()
23 foo (10, 3);
24 return 0;