Index: test/support/count_new.hpp =================================================================== --- test/support/count_new.hpp +++ test/support/count_new.hpp @@ -24,6 +24,9 @@ namespace detail { +#if TEST_STD_VER >= 11 + [[noreturn]] +#endif inline void throw_bad_alloc_helper() { #ifndef TEST_HAS_NO_EXCEPTIONS throw std::bad_alloc();