Detect and warn about overly complex expressions

This commit is contained in:
Phil Nash
2010-11-11 07:21:57 +00:00
parent 3d0fed768a
commit 48a70220a3
3 changed files with 22 additions and 11 deletions

View File

@@ -38,6 +38,6 @@ TEST_CASE( "succeeding/Tricky/complex lhs", "Where the LHS is not a simple value
int a = 1;
int b = 2;
// !TBD: This only captures part of the expression
EXPECT( a == 2 || b == 2 );
// This only captures part of the expression, but issues a warning about the rest
EXPECT( a == 2 || b == 1 );
}