aboutsummaryrefslogtreecommitdiff
path: root/testes/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/main.lua')
-rw-r--r--testes/main.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/testes/main.lua b/testes/main.lua
index 1aa7b217..e0e9cbe8 100644
--- a/testes/main.lua
+++ b/testes/main.lua
@@ -310,8 +310,11 @@ checkprogout("ZYX)\nXYZ)\n")
310-- bug since 5.2: finalizer called when closing a state could 310-- bug since 5.2: finalizer called when closing a state could
311-- subvert finalization order 311-- subvert finalization order
312prepfile[[ 312prepfile[[
313-- should be called last 313-- ensure tables will be collected only at the end of the program
314collectgarbage"stop"
315
314print("creating 1") 316print("creating 1")
317-- this finalizer should be called last
315setmetatable({}, {__gc = function () print(1) end}) 318setmetatable({}, {__gc = function () print(1) end})
316 319
317print("creating 2") 320print("creating 2")