1 /* { dg-do compile { target powerpc-*-linux* powerpc-*-sysv* powerpc-*-eabi* } } */
2 /* { dg-options "-O2 -fno-common -G 8 -msdata=sysv" } */
3 /* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata," } } */
4 /* { dg-final { scan-assembler-not "\\.section\[ \t\]\\.sdata2," } } */
5 /* { dg-final { scan-assembler "sdat@sdarel\\(13\\)" } } */
6 /* { dg-final { scan-assembler "sdat2@sdarel\\(13\\)" } } */
10 const char sdat2
[] = "1234";
12 const char * test (void)
14 return sdat
? sdat2
: 0;