2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / ns7.C
blobee834c56bd9a02940f4f1fa318c2cdd00757b3af
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  }
16 A::X::X(int j):i(j){}
18 namespace A{
19   struct Y:public X{
20     int j;
21     Y(int,int);
22   };
25 A::Y::Y(int a,int b):X(a),j(b)