aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/diag-1.c
blob: ae4f3d4a3c28c7e9b21f58724078572f5fc2b020 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Valid __thread specifiers.  */

__thread int g1;
extern __thread int g2;
static __thread int g3;

void foo()
{
  extern __thread int l1;
  static __thread int l2;
}