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;
16 thread_local int i = 42;