1 /* { dg-options "-ftls-model=local-exec -mfdpic" } */
2 /* { dg-do compile } */
3 static __thread int x;
4 extern void bar ();
5 int *y;
6
foo(void)7 void foo (void)
8 {
9 bar ();
10 y = &x;
11 }
12 /* { dg-final { scan-assembler ".*tlsmoff12" } } */
13