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} } } */