aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/gomp/tls-5.C
blob: 3679593af0ec141fd6b262587d6b36cad0eab1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// The reference temp should be TLS, not normal data.
// { dg-require-effective-target c++11 }
// { dg-final { scan-assembler-not "\\.data" { target tls_native } } }

extern int&& ir;
#pragma omp threadprivate (ir)
int&& ir = 42;

void f()
{
  ir = 24;
}