URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [dc2.C] - Rev 701
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
// { dg-options --std=c++0x }
struct A {
int i, j;
A () : A(0), j(0) { } // { dg-error "constructor delegation" }
A (int _i) : i(_i) { }
};
struct B {
int i, j;
B () : i(0), B(0) { } // { dg-error "constructor delegation" }
B (int _j) : j(_j) { }
};
struct C {};
struct D : public C {
D () : C() { }
D (float) : D(), C() { } // { dg-error "constructor delegation" }
D (float, float): C(), D() { } // { dg-error "constructor delegation" }
};
Go to most recent revision | Compare with Previous | Blame | View Log