aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tls/thread_local7g.C
blob: 6960598173aa3e34b2bed5202e86c9bb534ab61e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-options "-std=c++11" }
// { dg-require-effective-target tls }
// { dg-require-alias }

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

thread_local int&& ir = 42;

void f()
{
  ir = 24;
}