Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
static34.C
blob: 122fffafbcb569971cb45ec01731eb7a550a59a9 [
file
] [
log
] [
blame
]
// PR c++/52688
// { dg-do link }
template
<
class
T
>
struct
A
{
static
bool
test
()
{
static
bool
value
=
false
;
if
(
value
)
return
false
;
struct
S
{
S
()
{
value
=
true
;
}
};
static
S s
;
return
true
;
}
};
int
main
()
{
A
<int>
::
test
();
}