1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-common -G 8 -meabi -msdata=eabi" } */
3 /* { dg-require-effective-target powerpc_eabi_ok } */
4 /* { dg-require-effective-target nonpic } */
5 /* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata," } } */
6 /* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata2," } } */
7 /* { dg-final { scan-assembler "sdat@sda21\\((13|0)\\)" } } */
8 /* { dg-final { scan-assembler "sdat2@sda21\\((2|0)\\)" } } */
12 const char sdat2
[] = "1234";
14 const char * test (void)
16 return sdat
? sdat2
: 0;