testsuite/includes/include-8.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION -DCE_KEEP_INCLUDES" }*/ |
| 2 | |
| 3 | #include "header-8.h" |
| 4 | |
| 5 | int should_not_be_here(void) |
| 6 | { |
| 7 | return 1; |
| 8 | } |
| 9 | |
| 10 | int f(void) |
| 11 | { |
| 12 | return 0; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-tree-dump "#include \"header-8.h\"" } } */ |
| 16 | /* { dg-final { scan-tree-dump "int f\(void\)\n\{" } } */ |
| 17 | /* { dg-final { scan-tree-dump-not "int should_not_be_here" } } */ |