diff options
Diffstat (limited to 'testes/code.lua')
-rw-r--r-- | testes/code.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testes/code.lua b/testes/code.lua index 6bd6ebfa..ad484485 100644 --- a/testes/code.lua +++ b/testes/code.lua | |||
@@ -64,8 +64,12 @@ end | |||
64 | 64 | ||
65 | 65 | ||
66 | -- some basic instructions | 66 | -- some basic instructions |
67 | check(function () | 67 | check(function () -- function does not create upvalues |
68 | (function () end){f()} | 68 | (function () end){f()} |
69 | end, 'CLOSURE', 'NEWTABLE', 'GETTABUP', 'CALL', 'SETLIST', 'CALL', 'RETURN0') | ||
70 | |||
71 | check(function (x) -- function creates upvalues | ||
72 | (function () return x end){f()} | ||
69 | end, 'CLOSURE', 'NEWTABLE', 'GETTABUP', 'CALL', 'SETLIST', 'CALL', 'RETURN') | 73 | end, 'CLOSURE', 'NEWTABLE', 'GETTABUP', 'CALL', 'SETLIST', 'CALL', 'RETURN') |
70 | 74 | ||
71 | 75 | ||