Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.ns/ns7.C

raw
1 // { dg-do assemble }
2 namespace A{
3 struct X{
4 int i;
5 X(){}
6 X(int j);
7 void operator=(const X&);
8 virtual ~X(){}
9 };
10 void X::operator=(const X&o)
11 {
12 i=o.i;
13 }
14 }
15
16 A::X::X(int j):i(j){}
17
18 namespace A{
19 struct Y:public X{
20 int j;
21 Y(int,int);
22 };
23 }
24
25 A::Y::Y(int a,int b):X(a),j(b)
26 {}