aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tls/thread_local7.C
blob: aaac6c16a5239b303b8600fb3f02e16c20d0c2e4 (plain)
1
2
3
4
5
6
7
8
9
10
// { 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 xfail powerpc-*-aix* } } }

void f()
{
  thread_local int&& ir = 42;
}