Debian Codegraph @

gcc/testsuite/g++.dg/gomp/tls-5.C

raw
1 // The reference temp should be TLS, not normal data.
2 // { dg-require-effective-target c++11 }
3 // { dg-final { scan-assembler-not "\\.data" { target tls_native xfail powerpc-*-aix* } } }
4 // { dg-final { scan-assembler-symbol-section {^_?ir$} {^\.tbss} { target tls_native xfail powerpc-*-aix* } } }
5 // { dg-final { scan-assembler-symbol-section {^_?_ZGR2ir_$} {^\.tdata|\[TL\]} { target tls_native } } }
6
7 extern int&& ir;
8 #pragma omp threadprivate (ir)
9 int&& ir = 42;
10
11 void f()
12 {
13 ir = 24;
14 }