blob: 74cdd4b5eb1db6622e996e5efb61a71170a0fbbb [file] [log] [blame]
// PR c++/69000
// { dg-do compile }
// { dg-require-effective-target tls }
class A {};
template <typename T>
struct B
{
static int *& foo () { static __thread int *c = 0; return c; }
};
B<A> d;
void
bar ()
{
d.foo ();
}