Added more tests to test case TestSimplifyTokens::ifassign1
This commit is contained in:
parent
b56fdb83da
commit
2fa3b4ce60
|
@ -968,6 +968,7 @@ private:
|
|||
ASSERT_EQUALS("; a = b ; if ( a ) ;", simplifyIfAssign(";if(a=b);"));
|
||||
ASSERT_EQUALS("; a = b ( ) ; if ( ( a ) ) ;", simplifyIfAssign(";if((a=b()));"));
|
||||
ASSERT_EQUALS("; a = b ( ) ; if ( ! ( a ) ) ;", simplifyIfAssign(";if(!(a=b()));"));
|
||||
TODO_ASSERT_EQUALS("; a . x = b ( ) ; if ( ! ( a . x ) ) ;", simplifyIfAssign(";if(!(a->x=b()));"));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue