rt_gccstream/gcc/testsuite/gcc.target/frv/all-tls-local-exec.c

13 lines
222 B
C

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