summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.toc b/test.toc
index c4f76db..6160362 100644
--- a/test.toc
+++ b/test.toc
@@ -2,6 +2,14 @@ puti @= fn(i: int) {
#C("printf(\"%ld\\n\", i)");
};
+asdf @= fn(i: int) [3]int {
+ ret : [3]int;
+ ret[0] = 0*i;
+ ret[1] = 1*i;
+ ret[2] = 2*i;
+ return ret;
+};
+
main @= fn() {
x := new int;
*x = 17;
@@ -12,6 +20,7 @@ main @= fn() {
}
puti(*x);
del x;
+ fptr := asdf;
};
foo := 5;