URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [copy1.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
class A {
public:
A(){}
A( const A& a ){}
};
class B : public A
{
public:
B( int& s) : s_(s){}
int& s_;
};
int main()
{
int i;
B x1( i );
B x2( x1 );
}
Go to most recent revision | Compare with Previous | Blame | View Log