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-do compile { target c++11 } } 5 // { dg-require-effective-target tls } 6 // { dg-require-effective-target fpic } 7 // { dg-options "-fPIC" } 8 // { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } } 9 10 extern thread_local int i; 11 main()12int main() 13 { 14 return i - 42; 15 } 16