summaryrefslogtreecommitdiff
path: root/test.toc
blob: d755af54e78f46bc64401826fec549ee9c516bd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#C("#include <stdio.h>\n");

puti @= fn(x: int) {
	 #C("printf(\"%ld\\n\", (long)x)");
};

main @= fn() {
	 A, B := if 0 { 3, 5 } else { 4, 6 };
	 // A, B := 3, 5;
	 puti(A);
	 puti(B);
	 y:int;
	 while y < 10 {
		   puti({y = y + 1; y});
	 }
	 
};