summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc16
1 files changed, 8 insertions, 8 deletions
diff --git a/test.toc b/test.toc
index f2282a2..75a69aa 100644
--- a/test.toc
+++ b/test.toc
@@ -1,7 +1,7 @@
-// puti @= fn(x: int) {
-// #C("printf(\"%ld\\n\", (long)x);
-// ");
-// };
+puti @= fn(x: int) {
+ #C("printf(\"%ld\\n\", (long)x);
+");
+};
// putf @= fn(x: float) {
// #C("printf(\"%f\\n\", (double)x);
// ");
@@ -9,11 +9,11 @@
f @= fn(t @ Type, x: t) t {
- x + 1
+ x + 1 as t
};
main @= fn() {
- f(int, 10);
-};
-
+ puti(f(int, 3));
+ puti(f(u8, 255 as u8) as int);
+}; \ No newline at end of file