added save-locals and restore-locals, implemented on ARM
[voodoo-lang.git] / test / call.voo
blob1dec2885028538aedad0cc0f4d887bbb4552e69f
1 #### Test case for call expression
3 section data
4 format:
5 string "%d\n"
7 section functions
8 export main
9 import printf
11 answer:
12 function
13     return 42
14 end function
16 main:
17 function argc argv
18     let x call answer
19     call printf format x
20     return 0
21 end function