summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/frv/all-tls-global-dynamic.c
blob: 2135090f134485b4af0e3c44ffa4d8215b1a04cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-options "-ftls-model=global-dynamic -fpic -mfdpic -mno-inline-plt" } */
/* { dg-do compile } */
extern __thread int x;
extern void bar ();
int *y;

void foo (void)
{
  bar ();
  y = &x;
}
/* { dg-final { scan-assembler "call #gettlsoff.x." } } */