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
reject programs that import symbols after using them
[voodoo-lang.git]
/
test
/
func.voo
blob
e277f335e75746c6645129d8e396eb38df0fb93e
1
# Test using a function from a shared library.
2
3
section data
4
format:
5
string "%d + %d = %d\n\x00"
6
7
section functions
8
import add printf
9
export main
10
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