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