2 // { dg-do compile { target c++11 } }
15 struct D1 : B1 { // { dg-message "B1::B1" }
16 using B1::B1; // inherits B1(int, ...)
22 D1 d(2, 3, 4); // OK: B1 is initialized by calling B1(2, 3, 4),
23 // then d.x is default-initialized (no initialization is performed),
24 // then d.y is initialized by calling get()
25 D1 e; // { dg-error "" } D1 has a deleted default constructor
29 using B2::B2; // { dg-message "B1::B1" }
33 D2 f(1.0); // { dg-error "" } B1 has no default constructor