Added test case for auto-words and made it pass on amd64 and i386.
[voodoo-lang.git] / test / block.voo
blobdd07416d0f514a42c75c5a8a74b7dd910cea6d03
1 #### Test case for blocks
3 section data
5 format:
6 string "%d\n\x00"
8 section functions
9 import printf
10 export main
12 main:
13 function argc argv
14     block
15         let x 12
16         call printf format x
18         block
19             let x 42
20             call printf format x
21         end block
23         call printf format x
25         block
26             let y 67
27             call printf format x
28             call printf format y
29         end block
31         call printf format x
32     end block
34     return 0
35 end function