Added make rdoc target to generate rdoc documentation for the library.
[voodoo-lang.git] / test / mod.voo
blob2e42c53ada4ce158b784b39a140c5197e001452f
1 #### Test mod action
3 section data
4 format:
5 string "%d\n\x00"
7 section code
8 import printf
9 export main
11 main:
12 function argc argv
13   let x 24
14   let y mod x 1
15   call printf format y
16   set y mod x -1
17   call printf format y
18   set y mod x 3
19   call printf format y
20   set y mod x -3
21   call printf format y
22   set y mod x 5
23   call printf format y
24   set y mod x -5
25   call printf format y
27   let z 3
28   set y mod x z
29   call printf format y
30   set z -5
31   set y mod x z
32   call printf format y
34   set x -24
35   set z 5
36   set y mod x z
37   call printf format y
38   set z -5
39   set y mod x z
40   call printf format y
42   return 0
43 end function