diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 21 |
1 files changed, 7 insertions, 14 deletions
@@ -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 |