// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1365 globals endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function foo takes string p_msg, string p_pos returns string local string msg = p_msg local string pos = p_pos local integer i set pos = msg set msg = "" set i = 1 loop exitwhen i > 3 set msg = msg + "x" set i = i + 1 endloop return pos + msg endfunction function init_test takes nothing returns nothing local string s = foo("a", "b") if s == "axxx" then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction