OpenCores
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 693

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" }
};

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.