doc: Mark up __cxa_atexit as @code.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp05.c
blobf7ba16c20bbc2216076ff70c0022f39b2350d8a5
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1 -fno-early-inlining -fno-thread-jumps -fno-ipa-vrp" } */
5 inline int ten()
7 return 10;
9 inline int zero()
11 return 0;
14 int
15 foo (int k, int j)
17 if (k >= ten())
19 if (j > k)
21 /* We should fold this to if (1). */
22 if (j > zero())
23 return j;
27 return j+1;
30 /* { dg-final { scan-tree-dump-times "Folding predicate j_.*to 1" 1 "vrp1" } } */