summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc16
1 files changed, 15 insertions, 1 deletions
diff --git a/test.toc b/test.toc
index acffe96..00cd372 100644
--- a/test.toc
+++ b/test.toc
@@ -32,7 +32,21 @@ Bar @= struct {
main @= fn() {
f: Foo;
-
+ b: Bar;
+ f.x = &b;
+ b.y = &f;
+
+ Baz @= struct { a : &Quux; };
+ Quux @= struct { b: &Baz; };
+ B : Baz;
+ q : Quux;
+ B.a = &q;
+ q.b = &B;
+
+ Wow @= struct { w: &Wow; };
+ w: Wow;
+ w.w = &w;
+
puti(total());
X @= total();
puti(X);