URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [access18.C] - Rev 772
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// { dg-options "-w" }
// PRMS Id: 5073
// Bug: g++ doesn't catch access violations in base initializers.
int r = 0;
class A {
private:
A() { r = 1; } // { dg-error "" }
~A() {} // { dg-error "" }
};
class B : public A {
public:
B(): A() {} // { dg-error "" }
B(const B&) {} // { dg-error "" }
~B() { } // { dg-error "" } private dtor
};
main()
{
B b;
return r;
}
Go to most recent revision | Compare with Previous | Blame | View Log