☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
static34.C
☽
☼
gcc/testsuite/g++.dg/template/static34.C
code
plain
raw
1
// PR c++/52688
2
// { dg-do link }
3
4
template<class T>
5
struct A {
6
static bool test() {
7
static bool value = false;
8
if (value)
9
return false;
10
struct S {
11
S() { value = true; }
12
};
13
static S s;
14
return true;
15
}
16
};
17
18
int main()
19
{
20
A<int>::test();
21
}