aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/gomp/tls-wrap1.C
blob: 91c9f8631257946c7167bdee9b2730c8ddbb6374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// If we can see the definition at the use site, we don't need to bother
// with a wrapper.

// { dg-require-effective-target tls }
// { dg-final { scan-assembler-not "_ZTW1i" } }

int i = 42;
#pragma omp threadprivate (i)

int main()
{
  return i - 42;
}