aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/pr65771.c
blob: 6dea7c51a13a2a69c40af244956df334f12be2c8 (plain)
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;
}