fortran: Fix up pasto in gfc_get_array_descr_info
[official-gcc.git] / gcc / testsuite / gcc.target / arc / tls-1.c
blob09f69fa53d888d751b1ea596051fddcb57232b22
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
7 mechanism. */
9 struct callchain_cursor
11 int last;
12 long long pos;
13 } __thread a;
15 void fn1 (struct callchain_cursor *p1)
17 p1->pos++;
20 extern void fn3 (void);
22 void fn2 (void)
24 struct callchain_cursor *b = &a;
25 while (1)
27 fn3 ();
28 fn1 (b);
31 /* { dg-final { scan-assembler "r25,@a@tpoff" } } */