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

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