Index: test/clang-modernize/AddOverride/basic.cpp =================================================================== --- test/clang-modernize/AddOverride/basic.cpp +++ test/clang-modernize/AddOverride/basic.cpp @@ -159,3 +159,19 @@ // MACRO: struct N // MACRO-NEXT: void h() const override; }; + +struct O : public A { + void h() const noexcept(false); + // CHECK: struct O + // CHECK-NEXT: void h() const noexcept(false) override; + // MACRO: struct O + // MACRO-NEXT: void h() const noexcept(false) override; +}; + +struct P : public A { + void h() const throw(); + // CHECK: struct P + // CHECK-NEXT: void h() const throw() override; + // MACRO: struct P + // MACRO-NEXT: void h() const throw() override; +};