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
made variables in shared libraries work on i386
[voodoo-lang.git]
/
test
/
var.voo
blob
08a6d950259a7e098ca6a6801b7db5abe3be06b3
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
set @foo 9
18
let z call add_foo x
19
call printf format x @foo z
20
return 0
21
end function