summaryrefslogtreecommitdiff
path: root/tolua/src/tests/tvararg.lua
blob: 7b42eecdba909734439559e263a02832b69f9d37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local a = A:new()
local b = a:GetB()
local t = {}
for i = 1, 100 do
  t[i] = a:GetB()
  local a, b, c = a:bounce(i,i)
  assert(a==i and b==i and c==i)
end

t = nil
b = nil
collectgarbage("collect")
assert(B.n == 0)
print("VarArg OK")