// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals integer test_x=0 integer array test_ar_x integer array test_ar_y endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function bar takes nothing returns integer set test_x = test_x + 1 return 1 endfunction function foo takes nothing returns integer set test_x = test_x * 2 return 1 endfunction function init_test takes nothing returns nothing local integer tempIndex local integer tuple_temp local integer tuple_temp_1 set test_x = 1 set tempIndex = foo() set tuple_temp = bar() set tuple_temp_1 = 7 set test_ar_x[tempIndex] = tuple_temp set test_ar_y[tempIndex] = tuple_temp_1 if test_x == 3 and test_ar_x[1] == 1 and test_ar_y[1] == 7 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction