mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Fixed leak
This commit is contained in:
@@ -40,4 +40,12 @@ TEST_CASE( "succeeding/Tricky/complex lhs", "Where the LHS is not a simple value
|
||||
|
||||
// This only captures part of the expression, but issues a warning about the rest
|
||||
EXPECT( a == 2 || b == 2 );
|
||||
}
|
||||
|
||||
TEST_CASE( "succeeding/Tricky/complex lhs/2", "Where the LHS is not a simple value" )
|
||||
{
|
||||
int a = 1;
|
||||
|
||||
// This only captures part of the expression, but issues a warning about the rest
|
||||
// EXPECT( a + 1 == 2);
|
||||
}
|
Reference in New Issue
Block a user