Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / g++.dg / tls / thread_local-wrap4.C
1 // We don't need to call the wrapper through the PLT; we can use a separate
2 // copy per shared object.
3
4 // { dg-require-effective-target tls }
5 // { dg-require-effective-target fpic }
6 // { dg-options "-std=c++11 -fPIC" }
7 // { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } }
8
9 extern thread_local int i;
10
11 int main()
12 {
13   return i - 42;
14 }