summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc13
1 files changed, 11 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index 1ce3f12..33ccd3f 100644
--- a/test.toc
+++ b/test.toc
@@ -1,6 +1,15 @@
#include "std/io.toc";
main ::= fn() {
- for x : 3 = "foo" { a := x; }
-
+ foo : [5][]char;
+ for x := &foo {
+ *x = "hello";
+ }
+ for x := foo {
+ puts(x);
+ }
+ for c := "foobar" {
+ puti(c as int);
+ }
}
+main();