memory leaks: added test assertion. simplify ';alloc;exit;' to ';exit;'
This commit is contained in:
parent
241f585d34
commit
1d974f7c05
|
@ -475,6 +475,7 @@ private:
|
|||
ASSERT_EQUALS(";", simplifycode(";callfunc;", true));
|
||||
|
||||
// exit..
|
||||
ASSERT_EQUALS("; exit ;", simplifycode("; alloc; exit;"));
|
||||
ASSERT_EQUALS(";", simplifycode("; if { alloc; exit; }"));
|
||||
ASSERT_EQUALS("; alloc ;", simplifycode("; alloc ; if { use; exit; }"));
|
||||
ASSERT_EQUALS("; alloc ;", simplifycode("; alloc ; if(!var) { exit; }"));
|
||||
|
|
Loading…
Reference in New Issue