Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/ipa/vrp3.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-cp-details" } */ volatile int cond; static __attribute__((noinline, noclone)) int foo (int i) { if (i < 5) __builtin_abort (); return 0; } static __attribute__((noinline, noclone)) int bar (int j) { if (cond) foo (j); return 0; } int main () { for (unsigned int i = 0; i < 10; ++i) bar (i); return 0; } /* { dg-final { scan-ipa-dump-times "Setting value range of param 0 \\\[0, 9\\\]" 2 "cp" } } */