This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / mips-sdata-1.c
blob8ffd4d84857d39ae903f08f1e03cf830112ecbbb
1 /* Check that sdata-accesses are applied regardless of size or ABI. */
2 /* { dg-options -mexplicit-relocs } */
3 /* { dg-do compile { target mips*-*-elf* } } */
5 struct s { int x[4]; };
6 struct s my_struct __attribute__((__section__(".sdata")));
8 int f() { return my_struct.x[0]; }
10 /* { dg-final { scan-assembler {gp_?rel\(my_struct} } } */