aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local7g.C
blob: fb847ce4a06ef8112af2173c88e08482cac48dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }

// The reference temp should be TLS, not normal data.
// { dg-final { scan-assembler-not "\\.data" { target tls_native } } }

thread_local int&& ir = 42;

void f()
{
  ir = 24;
}