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
updated language definition with export/import ordering constraint
[voodoo-lang.git]
/
test
/
import-after-use.voo
blob
3122520f6a598b905d4e308fd57c32a918bd62fd
1
# Imports a symbol after it has been used. Compilers should reject this program.
2
3
section data
4
msg: string "FAIL\x00"
5
6
section functions
7
export main
8
9
align
10
main:
11
function argc argv
12
call puts msg
13
return 0
14
end function
15
16
import puts