2 // { dg-do compile { target c++11 } }
6 T() noexcept(false) { }
7 ~T() noexcept(false) { }
20 A::A() noexcept = default; // { dg-error "defaulted" }
21 A::~A() noexcept = default; // { dg-error "defaulted" }
25 U() noexcept(false) { }
26 ~U() noexcept(false) { }
39 B::B() noexcept(false) = default;
40 B::~B() noexcept(false) = default;
46 V() noexcept(false) { }
47 ~V() noexcept(false) { }
54 C() noexcept = default; // { dg-message "exception-specification" }
55 ~C() noexcept = default; // { dg-message "exception-specification" }
60 C c; // { dg-error "deleted" }