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
/
call.voo
blob
1dec2885028538aedad0cc0f4d887bbb4552e69f
1
#### Test case for call expression
2
3
section data
4
format:
5
string "%d\n"
6
7
section functions
8
export main
9
import printf
10
11
answer:
12
function
13
return 42
14
end function
15
16
main:
17
function argc argv
18
let x call answer
19
call printf format x
20
return 0
21
end function