Add STATIC_CHECK and STATIC_CHECK_FALSE (#2318)

This commit is contained in:
Morwenn
2021-11-15 00:28:27 +01:00
committed by GitHub
parent edc2f6e8a3
commit f41d761674
11 changed files with 55 additions and 7 deletions

View File

@@ -172,6 +172,8 @@ TEST_CASE("#1403", "[compilation]") {
TEST_CASE("Optionally static assertions", "[compilation]") {
STATIC_REQUIRE( std::is_void<void>::value );
STATIC_REQUIRE_FALSE( std::is_void<int>::value );
STATIC_CHECK( std::is_void<void>::value );
STATIC_CHECK_FALSE( std::is_void<int>::value );
}
TEST_CASE("#1548", "[compilation]") {