// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1367
globals
integer foo_return_a=0
endglobals
native testSuccess takes nothing returns nothing
function foo takes boolean b returns integer
	if b then
		set foo_return_a = 2
		return foo_return_a
	endif
	set foo_return_a = 3
	return foo_return_a
endfunction

function initGlobals takes nothing returns nothing
endfunction

function main takes nothing returns nothing
	local integer tuple_temp
	call initGlobals()
	set tuple_temp = foo(true)
	if tuple_temp == 2 then
		call testSuccess()
	endif
endfunction

function config takes nothing returns nothing
endfunction