diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -1,14 +1,9 @@ #include "std/io.toc", io; -foo ::= fn() { - x := bar(12); - io.puti(x); +main ::= fn() { + #warn("foo"); #no_warn + x := 0 as ∫ #no_warn + #warn("foo"); #no_warn + #warn("foo"); #no_warn + #warn("foo"); #no_warn } - -bar ::= fn(x: int) int { - y := x; - io.puti(y); - y -} - -foo(); |