repo.or.cz
/
voodoo-lang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
also remove .s files when running make clean in test directory
[voodoo-lang.git]
/
test
/
var.voo
blob
c00a5316ef6c796002cc1388a0f6d383309fc0ce
1
# Test using a variable from a shared library.
2
3
section data
4
import foo
5
6
format:
7
string "%d + %d = %d\n\x00"
8
9
section functions
10
import add_foo printf
11
export main
12
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