1 /* PR target/89290 */
2 /* { dg-do compile { target { tls && lp64 } } } */
3 /* { dg-options "-O0 -mcmodel=large" } */
4 
5 struct S { long int a, b; } e;
6 __thread struct S s;
7 __thread struct S t[2];
8 
9 void
foo(void)10 foo (void)
11 {
12   s = e;
13 }
14 
15 void
bar(void)16 bar (void)
17 {
18   t[1] = e;
19 }
20