Debian Codegraph @

gcc/testsuite/g++.dg/tls/thread_local7g.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-require-effective-target tls }
3
4 // The reference temp should be TLS, not normal data.
5 // { dg-final { scan-assembler-not "\\.data" { target tls_native xfail powerpc-*-aix* } } }
6
7 thread_local int&& ir = 42;
8
9 void f()
10 {
11 ir = 24;
12 }