diff options
Diffstat (limited to 'tests/arr')
-rw-r--r-- | tests/arr/arr.toc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/arr/arr.toc b/tests/arr/arr.toc index 4cabd9e..d18e8ea 100644 --- a/tests/arr/arr.toc +++ b/tests/arr/arr.toc @@ -1,10 +1,10 @@ puti ::= fn(x: int) { - #C("printf(\"%ld\\n\", (long)x); -"); + #C("extern int printf(const char *fmt, ...)"); + #C("printf(\"%ld\\n\", (long)x)"); }; putf ::= fn(x: float) { - #C("printf(\"%f\\n\", (double)x); -"); + #C("extern int printf(const char *fmt, ...)"); + #C("printf(\"%f\\n\", (double)x)"); }; // it would be nice if Arr.data.len == Arr.len (: but this will require some C code... |