blob: f1cf02184c49d048716fba9f4bddf3b7cd6b0383 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "std/io.toc", io;
Point3D ::= struct {
x, y, z: f32;
}
main ::= fn() {
p: Point3D;
io.puti(#sizeof Point3D);
// io.puti(#sizeof p);
io.puti(#sizeof typeof p);
io.puti(sizeof Point3D);
// io.puti(sizeof p);
io.puti(sizeof typeof p);
io.puti(#alignof Point3D);
// io.puti(#alignof p);
io.puti(#alignof typeof p);
io.puti(alignof Point3D);
// io.puti(alignof p);
io.puti(alignof typeof p);
}
main();
|