URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [ctors5.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed constructors
// ctors file
// Subject: bug in handling static const object of the enclosing class
// Date: Tue, 1 Sep 92 10:38:44 EDT
class X
{ // { dg-error "X::X" } implicit constructor
private:
int x;
public:
static const X x0;
X( int );
};
class Y
{
private:
X xx;
public:
Y();
}
X::X( int xi ) // { dg-error "return type|X::X|semicolon" }
{
x = xi;
}
const X X::x0( 0 );
Y::Y() // { dg-error "no match" }
{
xx = X::x0;
}
Go to most recent revision | Compare with Previous | Blame | View Log