summaryrefslogtreecommitdiff
path: root/test.toc
blob: a1c28b16917e3ac3cb2f8c424fecf136d9cd8f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
#include "std/io.toc";
*/
Point ::= struct {
	x, y: int;
}

f ::= fn() p: Point {
	p.x = 13;
}

main ::= fn() {
	p := f();
	use p;
}