summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc17
1 files changed, 7 insertions, 10 deletions
diff --git a/test.toc b/test.toc
index 2b44207..1323f3f 100644
--- a/test.toc
+++ b/test.toc
@@ -1,13 +1,10 @@
-Point ::= struct {
- x, y: int;
-}
-
-mkpoint ::= fn(x, y: int) p: Point {
- p.x = x;
- p.y = y;
-}
-
main ::= fn() {
+ Point ::= struct {
+ x: int;
+ y, z: int;
+ }
p: Point;
- use p;
+ p.x = 6;
+ p.y = 13;
+ p.z = 43902;
}