also remove .s files when running make clean in test directory
[voodoo-lang.git] / test / var.voo
blobc00a5316ef6c796002cc1388a0f6d383309fc0ce
1 # Test using a variable from a shared library.
3 section data
4 import foo
6 format:
7 string "%d + %d = %d\n\x00"
9 section functions
10 import add_foo printf
11 export main
13 align
14 main:
15 function argc argv
16     let x 18
17     let z call add_foo x
18     call printf format x @foo z
19     set @foo 9
20     set z call add_foo x
21     call printf format x @foo z
22     return 0
23 end function