1 /* { dg-do compile } */
2 /* { dg-require-effective-target tls } */
3 /* { dg-skip-if "" { arc*-*-elf* } } */
4 /* { dg-options "-O3 -std=gnu99" } */
6 /* Check if addressing the `pos` member of struct is done via tls
9 struct callchain_cursor
15 void fn1 (struct callchain_cursor
*p1
)
20 extern void fn3 (void);
24 struct callchain_cursor
*b
= &a
;
31 /* { dg-final { scan-assembler "r25,@a@tpoff" } } */