URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do assemble }
|
// { dg-do assemble }
|
namespace A{
|
namespace A{
|
struct X{
|
struct X{
|
int i;
|
int i;
|
X(){}
|
X(){}
|
X(int j);
|
X(int j);
|
void operator=(const X&);
|
void operator=(const X&);
|
virtual ~X(){}
|
virtual ~X(){}
|
};
|
};
|
void X::operator=(const X&o)
|
void X::operator=(const X&o)
|
{
|
{
|
i=o.i;
|
i=o.i;
|
}
|
}
|
}
|
}
|
|
|
A::X::X(int j):i(j){}
|
A::X::X(int j):i(j){}
|
|
|
namespace A{
|
namespace A{
|
struct Y:public X{
|
struct Y:public X{
|
int j;
|
int j;
|
Y(int,int);
|
Y(int,int);
|
};
|
};
|
}
|
}
|
|
|
A::Y::Y(int a,int b):X(a),j(b)
|
A::Y::Y(int a,int b):X(a),j(b)
|
{}
|
{}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.