| 1 |
/* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_LATE_EXTERNALIZE -DCE_EXPORT_SYMBOLS=g -DCE_KEEP_INCLUDES" }*/ |
| 2 |
|
| 3 |
#define MACRO int |
| 4 |
#include "lateext-4.h" |
| 5 |
#undef MACRO |
| 6 |
|
| 7 |
int f(void) |
| 8 |
{ |
| 9 |
return g(); |
| 10 |
} |
| 11 |
|
| 12 |
/* { dg-final { scan-tree-dump "#include \"lateext-4.h\"" } } */ |
| 13 |
/* { dg-final { scan-tree-dump "static int \(\*klpe_g\)\(void\) __attribute__\(\(used\)\);|__attribute__\(\(used\)\) static int \(\*klpe_g\)\(void\);" } } */ |
| 14 |
/* { dg-final { scan-tree-dump "return \(\*klpe_g\)\(\);" } } */ |