☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
ctor2.C
☽
☼
gcc/testsuite/g++.dg/template/ctor2.C
code
plain
raw
1
// { dg-do run }
2
3
int i;
4
5
template <class T>
6
struct S
7
{
8
S () { i = 1; }
9
};
10
11
static S<int> s[1];
12
13
int main ()
14
{
15
if (!i)
16
return 1;
17
}
18