(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
tls/
pr69000.C
// 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 ();
}