Enable [[noreturn]] some.

This commit is contained in:
Bruce Mitchener
2019-04-08 07:53:59 -07:00
committed by Victor Zverovich
parent 2808395481
commit aeb5ad3ce1
5 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -52,9 +52,9 @@ int SingleEvaluationTest::b_;
void do_nothing() {}
void throw_exception() { throw std::runtime_error("test"); }
FMT_NORETURN void throw_exception() { throw std::runtime_error("test"); }
void throw_system_error() { throw fmt::system_error(EDOM, "test"); }
FMT_NORETURN void throw_system_error() { throw fmt::system_error(EDOM, "test"); }
// Tests that when EXPECT_THROW_MSG fails, it evaluates its message argument
// exactly once.