1 // RUN: %clang_cc1 %s -fcxx-exceptions -fsyntax-only -Wexceptions -verify -std=c++14
2 
3 // expected-no-diagnostics
4 struct Base {
BaseBase5   __attribute__((nothrow)) Base() {}
6 };
7 
8 struct Derived : Base {
9   Derived() noexcept = default;
10 };
11 
12 struct Base2 {
Base2Base213    Base2() noexcept {}
14 };
15 
16 struct Derived2 : Base2 {
17   __attribute__((nothrow)) Derived2() = default;
18 };
19 
20 struct Base3 {
Base3Base321   __attribute__((nothrow)) Base3() {}
22 };
23 
24 struct Derived3 : Base3 {
25   __attribute__((nothrow)) Derived3() = default;
26 };
27