summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc12
1 files changed, 10 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index 03f7ae6..a525e75 100644
--- a/test.toc
+++ b/test.toc
@@ -1,5 +1,13 @@
#include "std/io.toc", io;
+Point3D ::= struct {
+ x, y, z: f32;
+}
+
main ::= fn() {
- for i := 0..10 { 3; };
-} \ No newline at end of file
+ p: Point3D;
+ io.puti(#sizeof(Point3D));
+ // io.puti(#sizeof(p));
+ io.puti(#sizeof(typeof p));
+}
+main(); \ No newline at end of file