testsuite/lateext/location-1.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_EXPORT_SYMBOLS=global -DCE_KEEP_INCLUDES -DCE_LATE_EXTERNALIZE" }*/ |
| 2 | |
| 3 | #include "location-1.h" |
| 4 | |
| 5 | int f(void) |
| 6 | { |
| 7 | return global; |
| 8 | } |
| 9 | |
| 10 | /* { dg-final { scan-tree-dump "static int \*klpe_global __attribute__\(\(used\)\);|__attribute__\(\(used\)\) static int \*klpe_global;" } } */ |
| 11 | /* { dg-final { scan-tree-dump "clang-extract: from .*location-1.h:29:1" } } */ |