gcc/testsuite/g++.dg/gomp/tls-wrap4.C
raw| 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-options "-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 | } |