Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
tls
/
pr66808.C
blob: e977987bdd70039e3e014008f802be6633ea2570 [
file
] [
log
] [
blame
]
// 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
;