added support for creating shared libraries on ARM
[voodoo-lang.git] / test / func.voo
blobe277f335e75746c6645129d8e396eb38df0fb93e
1 # Test using a function from a shared library.
3 section data
4 format:
5 string "%d + %d = %d\n\x00"
7 section functions
8 import add printf
9 export main
11 align
12 main:
13 function argc argv
14     let x 3
15     let y 4
16     let z call add x y
17     call printf format x y z
18     return 0
19 end function