aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-ice2.C
blob: 5d3ba697a705949854a56a3e88f705004b6b22ff (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/58672
// { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }

struct A
{
  A(int);
  i;				// { dg-error "" }
};

thread_local A a(0);