summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc9
1 files changed, 5 insertions, 4 deletions
diff --git a/test.toc b/test.toc
index b12e461..6c9ff18 100644
--- a/test.toc
+++ b/test.toc
@@ -1,8 +1,9 @@
#C("#include <stdio.h>\n");
-foo.bar @= fn() {
- #C("puts(\"Hello!\");\n");
+foo @= fn() [3]int {
+ x : [3]int;
+ x
};
-
main @= fn() {
- foo.bar();
+ x := foo();
+ #C("printf(\"Foo: %ld\\n\", (long)x)");
};