1 // Valid __thread specifiers.
2 // { dg-require-effective-target tls }
5 extern __thread int g2;
6 static __thread int g3;
10 extern __thread int l1;
11 static __thread int l2;
15 static __thread int i;
18 __thread int A::i = 42;
20 template <typename T> struct B {
25 __thread T B<T>::t = 42;
30 int k = B<const int>::t;