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] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options --std=c++0x }
3
 
4
struct A {
5
        int i, j;
6
        A () : A(0), j(0) { } // { dg-error "constructor delegation" }
7
        A (int _i) : i(_i) { }
8
};
9
 
10
struct B {
11
        int i, j;
12
        B () : i(0), B(0) { } // { dg-error "constructor delegation" }
13
        B (int _j) : j(_j) { }
14
 
15
};
16
 
17
struct C {};
18
 
19
struct D : public C {
20
        D () : C() { }
21
        D (float) : D(), C() { } // { dg-error "constructor delegation" }
22
        D (float, float): C(), D() { } // { dg-error "constructor delegation" }
23
};

powered by: WebSVN 2.1.0

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