PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp10.c
blob6d07caff015f220ba86e573a8b15616b79437433
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 extern void abort (void);
6 int
7 foo (int k, int j)
9 if (k >= 10)
11 if (j > k)
13 /* We should fold this to if (0). */
14 if (j < 10)
15 abort ();
19 return j;
22 int
23 main()
25 foo (10, 3);
26 return 0;