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
/
substitute-number.voo
blob
7c243fe115c1209c83a6ea5b2426fc56a150f01e
1
# Test program for numeric substitutions
2
3
section data
4
5
bytes_per_word_format:
6
string "bytes-per-word: %d\n"
7
8
9
section functions
10
import printf
11
export main
12
13
align
14
main:
15
function argc argv
16
call printf bytes_per_word_format %bytes-per-word
17
return 0
18
end function