summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr25795.c
blob: decbe54e39f231c3a6214d4ae8a4a9757d749340 (plain)
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()
{
}