build test/libgroup.so instead of test/libgroup.s
[voodoo-lang.git] / test / tail-calls.voo
blob9ce56e1db6345be74c46ecbeb8689ff4628b6ca6
1 #### Test tail calls
3 section data
5 section functions
6 import puts
7 export main
9 tailtest:
10 function n
11     ifne 0 n
12         set n sub n 1
13         tail-call tailtest n
14     else
15         return 0
16     end if
17 end function
19 main:
20 function argc argv
21     call tailtest 1000000000
22     return 0
23 end function