gcc/testsuite/gcc.dg/ipa/inlinehint-1.c
raw| 1 | /* { dg-options "-O3 -c -fdump-ipa-inline-details -fno-early-inlining -fno-ipa-cp" } */ |
| 2 | /* { dg-add-options bind_pic_locally } */ |
| 3 | |
| 4 | void test2 (int); |
| 5 | int |
| 6 | test (int a) |
| 7 | { |
| 8 | int i; |
| 9 | for (i=0; i<a; i++) |
| 10 | { |
| 11 | test2(a); |
| 12 | test2(a); |
| 13 | } |
| 14 | } |
| 15 | int |
| 16 | m() |
| 17 | { |
| 18 | test (10); |
| 19 | } |
| 20 | /* { dg-final { scan-ipa-dump "loop_iterations" "inline" } } */ |