☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
copy2.C
☽
☼
gcc/testsuite/g++.old-deja/g++.other/copy2.C
code
plain
raw
1
// { dg-do run }
2
// Origin: Mark Mitchell <
[email protected]
>
3
4
int i;
5
6
struct B {
7
B () {}
8
B (B&) { i = 1; }
9
B (const B&) { i = 2; }
10
};
11
12
struct D : public B {
13
D () {}
14
};
15
16
int main ()
17
{
18
D d;
19
D d2 (d);
20
if (i != 2)
21
return 1;
22
}