Debian Codegraph @

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

raw
1 // If we can't see the definition at all, we need to assume there might be
2 // an init function.
3
4 // { dg-require-alias "" }
5 // { dg-require-effective-target tls }
6 // { dg-final { scan-assembler "_ZTW1i" } }
7 // { dg-final { scan-assembler "_ZTH1i" } }
8
9 extern int i;
10 #pragma omp threadprivate (i)
11
12 int main()
13 {
14 return i - 42;
15 }