summaryrefslogtreecommitdiff
path: root/test.toc
blob: 6bb39f36ce83676ee539d6f31f4e92cc5950c868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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});
	 }
	 foo : []int;
	 bar : []float;
	 
};