summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc8
1 files changed, 1 insertions, 7 deletions
diff --git a/test.toc b/test.toc
index 2b645bd..9e82451 100644
--- a/test.toc
+++ b/test.toc
@@ -1,13 +1,7 @@
arr ::= pkg "std/arr";
io ::= pkg "std/io";
main ::= fn() {
- x : arr.Arr(char);
- arr.arr_add(&x, 'H');
- arr.arr_add(&x, 'e');
- arr.arr_add(&x, 'l');
- arr.arr_add(&x, 'l');
- arr.arr_add(&x, 'o');
- arr.arr_add(&x, '!');
+#include "incstuff.toc";
s : [1]char;
s[0] = (arr.arr_len(x) as char) + '0';