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