☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
tls
/
pr66808.C
☽
☼
gcc/testsuite/g++.dg/tls/pr66808.C
code
plain
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;