Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/inline-9.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-Os -fdump-tree-optimized -fno-partial-inlining" } */ /* When optimizing for size, t should be inlined when it expands to one call only. */ extern int q(int); int t(int a) { if (a > 12) { q(a+5); q(a+5); } else q(a+10); } int main() { t(5); t(20); } /* { dg-final { scan-tree-dump-times "q \\(15\\)" 1 "optimized" } } */ /* { dg-final { scan-tree-dump-times "t \\(20\\)" 1 "optimized" } } */