Made parser able to report multiple errors per call, using new Voodoo::Parser::Multip...
[voodoo-lang.git] / test / goto.voo
blob3c9cc853dc76322d104bc53d79b059da978f9907
1 #### Test program for goto
3 section data
4 format:
5 string "%d\x0a\x00"
7 section functions
8 import printf
9 export main
11 main:
12 function argc argv
13     let n 10
14 lbl:
15     call printf format n
16     set n sub n 1
17     ifgt n 0
18         goto lbl
19     end if
20     return 0
21 end function