aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/gomp/tls-template1.C
blob: 5865ce3d98ed6dd959c1b744a52275e3c9e06610 (plain)
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;