blob: bd0ee8d2c03e33ad68ff5173ec997d34d278e811 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-skip-if "" { ! *-linux-* } } */
/* { dg-options "-O2 -fpic" } */
/* { dg-final { scan-assembler "foo@TLSLDM\\(%a5\\)" } } */
/* { dg-final { scan-assembler "bsr.l __tls_get_addr@PLTPC" } } */
/* { dg-final { scan-assembler "foo\\+4@TLSLDO,%a0" } } */
static int __thread foo[2];
int *
bar (void)
{
return foo + 1;
}