summaryrefslogtreecommitdiff
path: root/tests/params.toc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/params.toc')
-rw-r--r--tests/params.toc12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/params.toc b/tests/params.toc
index 4d37cf1..f43d7ba 100644
--- a/tests/params.toc
+++ b/tests/params.toc
@@ -1,3 +1,5 @@
+#include "std/io.toc";
+
addmul ::= fn (x:=0, y:=0) add := x+y, mul := x*y {
};
@@ -6,14 +8,6 @@ do_foo ::= fn (x := 3) y := x {
y += x;
};
-puti ::= fn(x: int) {
- #C("#ifndef __TINYC__
-extern int printf(const char *fmt, ...);
-#endif
-");
- #C("printf(\"%ld\\n\", x);");
-};
-
main ::= fn() {
a, m := addmul();
@@ -37,4 +31,4 @@ main ::= fn() {
puti(z);
z = do_foo(x = -1);
puti(z);
-}; \ No newline at end of file
+};