Partial implementation of C++11 thread_local.
[official-gcc.git] / gcc / testsuite / g++.dg / tls / thread_local7.C
blob77a1c05e44c5a406979066768c9aa1534b8d2052
1 // { dg-options "-std=c++11" }
2 // { dg-require-effective-target tls }
4 // The reference temp should be TLS, not normal data.
5 // { dg-final { scan-assembler-not "\\.data" } }
7 void f()
9   thread_local int&& ir = 42;