Add bytecode generation tests

This commit is contained in:
James Roseborough
2010-07-30 23:48:30 +00:00
parent 783e4bc092
commit e2249fc9ca
2 changed files with 15 additions and 6 deletions

View File

@@ -398,5 +398,14 @@ public class FragmentsTest extends TestSuite {
"end\n"+
"return c(),b\n" );
}
public void testUninitializedAroundBranch() {
runFragment( LuaValue.valueOf(333),
"local state\n"+
"if _G then\n"+
" state = 333\n"+
"end\n"+
"return state\n" );
}
}
}