testsuite/lateext/lateext-7.c
raw| 1 | /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_LATE_EXTERNALIZE -DCE_EXPORT_SYMBOLS=aaa -DCE_KEEP_INCLUDES" }*/ |
| 2 | |
| 3 | #include "lateext-7.h" |
| 4 | |
| 5 | DEFINE_STATIC_KEY_FALSE(aaa); |
| 6 | |
| 7 | int f(void) |
| 8 | { |
| 9 | return aaa.key; |
| 10 | } |
| 11 | |
| 12 | /* { dg-final { scan-tree-dump-not "DEFINE_STATIC_KEY_FALSE\(\*klpe_aaa\)" } } */ |
| 13 | /* { dg-final { scan-tree-dump "static struct AA \*klpe_aaa __attribute__\(\(used\)\);|__attribute__\(\(used\)\) static struct AA \*klpe_aaa;" } } */ |