URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ns/] [ns7.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
namespace A{
struct X{
int i;
X(){}
X(int j);
void operator=(const X&);
virtual ~X(){}
};
void X::operator=(const X&o)
{
i=o.i;
}
}
A::X::X(int j):i(j){}
namespace A{
struct Y:public X{
int j;
Y(int,int);
};
}
A::Y::Y(int a,int b):X(a),j(b)
{}