mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 22:05:39 +02:00
Add STATIC_CHECK and STATIC_CHECK_FALSE (#2318)
This commit is contained in:
@@ -32,6 +32,10 @@ foo f;
|
||||
TEST_CASE( "Disabled Macros" ) {
|
||||
std::cout << "This should not happen\n";
|
||||
FAIL();
|
||||
|
||||
// Test that static assertions don't fire when macros are disabled
|
||||
STATIC_CHECK( 0 == 1 );
|
||||
STATIC_REQUIRE( !true );
|
||||
}
|
||||
|
||||
#if defined(__clang__)
|
||||
|
Reference in New Issue
Block a user