diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -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 |