Add missing test script.

master
Robert G. Jakabosky 13 years ago
parent a3c36643bb
commit cb88f6fe59

@ -0,0 +1,16 @@
local llthreads = require "llthreads"
local CODE=[[
local function gc(fn)
local p = assert(newproxy())
assert(debug.setmetatable(p, { __gc = fn }))
return p
end
p = gc(function() print("hello from gc") end)
]]
local thread = llthreads.new(CODE)
thread:start()
thread:join()
Loading…
Cancel
Save