memory leaks: added test assertion. simplify ';alloc;exit;' to ';exit;'

This commit is contained in:
Daniel Marjamäki 2009-09-13 07:20:42 +02:00
parent 241f585d34
commit 1d974f7c05
1 changed files with 1 additions and 0 deletions

View File

@ -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; }"));