@ -67,7 +67,7 @@ static int test_luacompexec1(const char *code, int expected)
intmain(intargc,constchar*argv[])
{
intfailures=0;
failures+=test_luacompexec1("local function x(); local j = 0; for i=1,1000000000 do; j = i; end; return j; end; local y = x(); print(y); return y",1000000000);
failures+=test_luacompexec1("local function x(); local j = 0; for i=2.0,6.0,3.0 do; j = i; end; return j; end; local y = x(); print(y); return y",5);
failures+=test_luacompexec1("local function x(); local a=5; return 1004,2; end; local y; y = x(); print(y); return y",1004);
failures+=test_luacompexec1("local function x(); if 1 == 2 then; return 5.0; end; return 1.0; end; local z = x(); print(z); return z",1);
failures+=test_luacompexec1("local function x(y); if y == 1 then; return 1.0; elseif y == 5 then; return 2.0; else; return 3.0; end; end; local z = x(5); print(z); return z",2);