summaryrefslogtreecommitdiff
path: root/test.toc
blob: 70c5bd634ee7cecee187aefadde9ed4b66808dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// #C("#include <stdio.h>
// #define kasfdhkjasdfhjk ");

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

foo @= fn() int {
	X := new([100]int,5);
	asdf : [100]int;
	(*(&asdf))[5] = 12;
	
	
	// i := 0;
	// while i < 100 {
		  // (*X)[i] = i;
		  // i = i + 1;
	// }
	// total := 0;
	// i = 0;
	// while i < 100 {
		  // total = total + (*X)[i];
		  // i = i + 1;
	// }
	// total
	asdf[5]
};

main @= fn() {
	 Ar : [foo()]int;
};