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

void foo (void)
{
  bar ();
  y = &x;
}
/* { dg-final { scan-assembler "ldd.*tlsdesc\\(0\\)@" } } */