summaryrefslogtreecommitdiff
path: root/test.toc
blob: 88b4e6344313ee5a655403c967ec45438bc44941 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// io ::= nms {
// #include "std/io.toc";
// };

FOO ::= fn(t::Type) Type {
	&ll(int)
};

ll ::= struct(t::Type) {
   head: t;
   tail: FOO(t);
};

main ::= fn() {
	 l:ll(int);
	 m:ll(i16);
	 x::=#alignof(l);
	 y::=#alignof(m);
};