summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc7
1 files changed, 5 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index 7a3bf46..23a56e2 100644
--- a/test.toc
+++ b/test.toc
@@ -3,7 +3,10 @@ hw ::= fn() int {
io.puts("Hello, world!");
3
};
+arr ::= pkg "std/arr";
main ::= fn() {
-x::=hw();
-hw();
+ hw();
+ x::=hw();
+ x : arr.Arr(int);
+ arr_add(&x, 10);
}; \ No newline at end of file