summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/diag-1.c
blob: 56b570c94a5c74803232ad254ba9e661fe429a34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Valid __thread specifiers.  */
/* { dg-require-effective-target tls } */

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

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