1 /* PR debug/65771 */
2 /* { dg-do link } */
3 /* { dg-require-effective-target tls_runtime } */
4 /* { dg-add-options tls } */
5
6 struct S { int s; int t; };
7 __thread struct S a[10];
8 int b;
9
10 int
main()11 main ()
12 {
13 int c = a[b].t;
14 (void) c;
15 return 0;
16 }
17