blob: 813a6727b08bfed37e75958678324fcc499574c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// If we can see the definition at the use site, we don't need to bother
// with a wrapper.
// { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
// { dg-final { scan-assembler-not "_ZTW1i" } }
thread_local int i = 42;
int main()
{
return i - 42;
}
|