function test1 takes nothing returns nothing
local unit u = CreateUnit(Player(0), 'hfoo', 0, 0, 0)
call RemoveUnit(u)
set u = null
endfunction
function test2 takes nothing returns nothing
local unit u = CreateUnit(Player(0), 'hfoo', 0, 0, 0)
call KillUnit(u)
call RemoveUnit(u)
set u = null
endfunction
globals
unit u2 = null
endglobals
function test3 takes nothing returns nothing
call RemoveUnit(u2)
set u2 = CreateUnit(Player(0), 'hfoo', 0, 0, 0)
call UnitApplyTimedLife(u2, 0, 0.01)
endfunction
function InitTrig_Test takes nothing returns nothing
call TimerStart(CreateTimer(), 0.011, true, function test1)
endfunction