FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / ns7.C
blob9afc97c410f4b27ff279677549fddb7ac3daa9be
1 // Build don't link: 
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)