[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / tls / thread_local-wrap2.C
blobf07d7ae0708204d00cf80b208369608dd2fcaa30
1 // If we can't see the definition at the use site, but it's in this translation
2 // unit, we build a wrapper but don't bother with an init function.
4 // { dg-do compile { target c++11 } }
5 // { dg-require-effective-target tls }
6 // { dg-final { scan-assembler "_ZTW1i" } }
7 // { dg-final { scan-assembler-not "_ZTH1i" } }
9 extern thread_local int i;
11 int main()
13   return i - 42;
16 thread_local int i = 42;