1 2 3 4 5 6 7 8 9 10
/* { dg-do compile } */ /* { dg-options "-O3 -fwhole-program" } */ /* { dg-final { scan-assembler "mystr" } } */ extern const char *mystr; /* normally in a header */ const char *mystr __attribute__ ((externally_visible)); main() { }