1 2 3 4 5 6 7 8 9 10 11 12 13
// { dg-require-effective-target tls } template <class T> struct B { T t; }; class A { static B<int> b; #pragma omp threadprivate(b) }; B<int> A::b;