aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-wrap3.C
blob: ee8f147912bcb075c5234d2cdf21f33f58080e40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// If we can't see the definition at all, we need to assume there might be
// an init function.

// { dg-do compile { target c++11 } }
// { dg-require-alias "" }
// { dg-require-effective-target tls }
// { dg-final { scan-assembler "_ZTW1i" } }
// { dg-final { scan-assembler "_ZTH1i" } }

extern thread_local int i;

int main()
{
  return i - 42;
}