Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp05.c
blob7b8b61b44431366181b6cb6f799b5638da1b9b0c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1 -fno-early-inlining" } */
5 inline int ten()
7 return 10;
9 inline int zero()
11 return 0;
14 foo (int k, int j)
16 if (k >= ten())
18 if (j > k)
20 /* We should fold this to if (1). */
21 if (j > zero())
22 return j;
26 return j+1;
29 /* { dg-final { scan-tree-dump-times "Folding predicate j_.*to 1" 1 "vrp1" } } */
30 /* { dg-final { cleanup-tree-dump "vrp1" } } */