Debian Codegraph @

gcc/testsuite/g++.dg/tls/pr66808.C

raw
1 // PR c++/66808
2 // { dg-do compile { target c++11 } }
3 // { dg-require-effective-target tls }
4
5 template <typename>
6 class A {
7 int *b = foo ();
8 int *foo () { static __thread int a; return &a; }
9 };
10 A<int> b;