blob: 6dea7c51a13a2a69c40af244956df334f12be2c8 [file] [log] [blame]
/* 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;
}