summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc21
1 files changed, 7 insertions, 14 deletions
diff --git a/test.toc b/test.toc
index cda73e2..ea94e44 100644
--- a/test.toc
+++ b/test.toc
@@ -1,20 +1,13 @@
+#C("#include <stdio.h>\n");
+
puti @= fn(x: int) {
#C("printf(\"%ld\\n\", (long)x)");
};
-mktup @= fn(a: int, b: int) (int, int) {
- a, a+b
-};
-
-asdf @= fn() int {
- 32187318
-};
-
main @= fn() {
- a, b := mktup(10, 20);
- // x := mktup;
- puti(asdf() as u8 as i64);
- puti(a); puti(b);
- x := 5+-if 5 { 6 } else { 7 };
- puti(x);
+ A, B := if 0 { 3, 5 } else { 4, 6 };
+ // A, B := 3, 5;
+ puti(A);
+ puti(B);
+ asdfas := new (int, int);
}; \ No newline at end of file