* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
[official-gcc.git] / gcc / testsuite / gcc.dg / ppc-sdata-2.c
blob6aa96141e4f5731c3121906e4cbc015fb739ffff
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\\)" } } */
9 int sdat = 2;
10 const char sdat2[] = "1234";
12 const char * test (void)
14 return sdat ? sdat2 : 0;