gcc/testsuite/gcc.dg/ipa/inline-9.c
raw| 1 | /* { dg-options "-Os -fdump-ipa-inline-details" } */ |
| 2 | int foo (void); |
| 3 | int test(int a) |
| 4 | { |
| 5 | if (a>100) |
| 6 | { |
| 7 | foo(); |
| 8 | foo(); |
| 9 | foo(); |
| 10 | foo(); |
| 11 | foo(); |
| 12 | foo(); |
| 13 | foo(); |
| 14 | foo(); |
| 15 | } |
| 16 | } |
| 17 | int |
| 18 | main() |
| 19 | { |
| 20 | for (int i=0;i<100;i++) |
| 21 | test(i); |
| 22 | } |
| 23 | /* { dg-final { scan-ipa-dump "Inlined 2 calls" "inline" } } */ |