summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc17
1 files changed, 6 insertions, 11 deletions
diff --git a/test.toc b/test.toc
index 0f4d5a4..6c66a8b 100644
--- a/test.toc
+++ b/test.toc
@@ -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();