summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/tls/diag-1.mm
blob: 7c3245d9f91c097123591d8a5c99bc8d06c34d14 (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;
}