Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.dg / gomp / tls-wrap4.C
blob59a56839050c957d76a67f4ed748ec1eaf89571d
1 // We don't need to call the wrapper through the PLT; we can use a separate
2 // copy per shared object.
4 // { dg-require-effective-target tls }
5 // { dg-do compile { target c++11 } }
6 // { dg-options "-fPIC" }
7 // { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } }
9 extern thread_local int i;
11 int main()
13   return i - 42;