* lib/target-supports.exp (add_options_for_tls): Prepend pthread
[official-gcc.git] / gcc / testsuite / g++.dg / tls / thread_local7g.C
blob05c0878e86f8c4911f1f7d3434d19582497c9b69
1 // { dg-do compile { target 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" { target tls_native xfail powerpc-*-aix* } } }
7 thread_local int&& ir = 42;
9 void f()
11   ir = 24;