2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / vrp3.c
blobfb5d54aca82acd00b8bebb58f5dfcb27a6d379c5
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-cp-details" } */
4 volatile int cond;
6 static __attribute__((noinline, noclone))
7 int foo (int i)
9 if (i < 5)
10 __builtin_abort ();
11 return 0;
14 static __attribute__((noinline, noclone))
15 int bar (int j)
17 if (cond)
18 foo (j);
19 return 0;
22 int main ()
24 for (unsigned int i = 0; i < 10; ++i)
25 bar (i);
27 return 0;
30 /* { dg-final { scan-ipa-dump-times "Setting value range of param 0 \\\[0, 9\\\]" 2 "cp" } } */