summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc9
1 files changed, 5 insertions, 4 deletions
diff --git a/test.toc b/test.toc
index 02811e2..2316a89 100644
--- a/test.toc
+++ b/test.toc
@@ -4,16 +4,17 @@ puti @= fn(x: int) {
");
};
-// putf @= fn(x: float) {
-// #C("printf(\"%f\\n\", (double)x);
-// ");
-// };
+putf @= fn(x: float) {
+ #C("printf(\"%f\\n\", (double)x);
+");
+};
add @= fn(x: int, y @int) int {
x + y
};
main @= fn() {
+add(3,10);
puti(add(3, 10));
x @= add(3, 7);
puti(add(4, x));