summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
Diffstat (limited to 'server/test')
-rw-r--r--server/test/vm/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/test/vm/init.lua b/server/test/vm/init.lua
index 6963e4c4..d8cfb3dc 100644
--- a/server/test/vm/init.lua
+++ b/server/test/vm/init.lua
@@ -114,3 +114,12 @@ TEST [[
local function xx(a, b, c, ...)
end
]]
+
+TEST [[
+local v = 1
+local function xx()
+ print(v)
+end
+local v = 2
+xx()
+]]