2 // { dg-do compile { target c++11 } }
4 struct A // { dg-message "user-provided default constructor" }
7 A() = default; // { dg-message "not user-provided" }
15 struct Derived : Base // { dg-message "user-provided default constructor" }
18 Derived() = default; // { dg-message "not user-provided" }
21 struct Derived2 : Base // { dg-message "user-provided default constructor" }
24 Derived2() = default; // { dg-message "not user-provided" }
25 Derived2( Derived2 const& ) = default;
28 struct Derived3 : Base // { dg-message "user-provided default constructor" }
31 Derived3( Derived3 const& ) = default;
32 Derived3() = default; // { dg-message "not user-provided" }
37 const A a; // { dg-error "uninitialized const" }
38 const Derived d; // { dg-error "uninitialized const" }
39 const Derived2 d2; // { dg-error "uninitialized const" }
40 const Derived3 d3; // { dg-error "uninitialized const" }