summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc13
1 files changed, 12 insertions, 1 deletions
diff --git a/test.toc b/test.toc
index 81dbee0..83f01d3 100644
--- a/test.toc
+++ b/test.toc
@@ -1,3 +1,14 @@
main @= fn() {
- ASDF : [{x:[3]int; p, q := &x[0], &x[2]; *q = 3412; *q}]f32;
+ add3 @= fn(x : int, y : int, z : int) int {
+ x + y + z
+ };
+ add2 @= fn(x : int, y : int) int {
+ x + y
+ };
+ id @= fn(x : int) int { x };
+
+ a1 : [id(7)]int;
+ a2 : [add2(53, 3)]int;
+ a3 : [add3(3,1,2)]f32;
+ GHJK : [{x := 5; x}]f32;
}; \ No newline at end of file