diff --git a/test/has_nothrow_destructor_test.cpp b/test/has_nothrow_destructor_test.cpp index 30d23a7..0f70435 100644 --- a/test/has_nothrow_destructor_test.cpp +++ b/test/has_nothrow_destructor_test.cpp @@ -30,13 +30,20 @@ struct noexcept_destruct ~noexcept_destruct()noexcept; }; -#endif +struct throwing_base +{ + ~throwing_base() noexcept(false); +}; + +#else struct throwing_base { ~throwing_base() throw(int); }; +#endif + struct throwing_derived : public throwing_base {}; struct throwing_contained{ throwing_base data; };