testsuite/includes/rewrite-1.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=g -DCE_KEEP_INCLUDES -DCE_EXPORT_SYMBOLS=f" }*/ |
| 2 | |
| 3 | #include "header-1.h" |
| 4 | |
| 5 | int g(void) |
| 6 | { |
| 7 | return f(); |
| 8 | } |
| 9 | |
| 10 | /* { dg-final { scan-tree-dump "static int \(\*klpe_f\)\(void\) __attribute__\(\(used\)\);|__attribute__\(\(used\)\) static int \(\*klpe_f\)\(void\);" } } */ |
| 11 | /* { dg-final { scan-tree-dump "\(\*klpe_f\)\(\)" } } */ |
| 12 | /* { dg-final { scan-tree-dump-not "#include \"header-1.h\"" } } */ |