summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc18
1 files changed, 16 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index c835a0b..165b41f 100644
--- a/test.toc
+++ b/test.toc
@@ -9,6 +9,20 @@ putf ::= fn(x: float) {
-point ::= pkg "point";
+// point ::= pkg "point";
+
+
main ::= fn() {
-}; \ No newline at end of file
+ s ::= struct { x,y,z:int; f:f32; };
+ puti(#alignof(s));
+ puti(#sizeof(s));
+
+};
+/*
+something's wrong (should be too few opening parentheses!)
+main ::= fn() {
+ puti(#alignof(struct { x,y,z:int; f:f64; });
+ puti(#sizeof(struct { x,y,z:int; f:f64; });
+
+};
+*/ \ No newline at end of file