[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / tls / thread_local-wrap3.C
blobee8f147912bcb075c5234d2cdf21f33f58080e40
1 // If we can't see the definition at all, we need to assume there might be
2 // an init function.
4 // { dg-do compile { target c++11 } }
5 // { dg-require-alias "" }
6 // { dg-require-effective-target tls }
7 // { dg-final { scan-assembler "_ZTW1i" } }
8 // { dg-final { scan-assembler "_ZTH1i" } }
10 extern thread_local int i;
12 int main()
14   return i - 42;