(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
tls/
pr66808.C
// PR c++/66808
// { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }

template <typename>
class A {
  int *b = foo ();
  int *foo () { static __thread int a; return &a; }
};
A<int> b;