testsuite/inline/lto-1/lto-1.c
raw| 1 | /* { dg-compile "-fdump-ipa-clones -O2 -flto -g3 $test_dir/a.c $test_dir/b.c"} */ |
| 2 | /* { dg-options "-graphviz -compute-closure main" }*/ |
| 3 | |
| 4 | |
| 5 | int function(); |
| 6 | int function_g(); |
| 7 | |
| 8 | int main(void) |
| 9 | { |
| 10 | return function() + function_g(); |
| 11 | } |
| 12 | |
| 13 | /* { dg-scan-tree-dump } */ |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump "common_1" } } */ |
| 16 | /* { dg-final { scan-tree-dump "common_2" } } */ |