diff options
Diffstat (limited to 'tests/arr2.toc')
-rw-r--r-- | tests/arr2.toc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/tests/arr2.toc b/tests/arr2.toc index 189512a..4d8ca82 100644 --- a/tests/arr2.toc +++ b/tests/arr2.toc @@ -1,20 +1,5 @@ #include "std/mem.toc"; -puti ::= fn(x: int) { -#C("#ifndef __TINYC__ -extern int printf(const char *fmt, ...); -#endif -"); - #C("printf(\"%ld\\n\", (long)x); -"); -}; -putf ::= fn(x: float) { -#C("#ifndef __TINYC__ -extern int printf(const char *fmt, ...); -#endif -"); - #C("printf(\"%f\\n\", (double)x); -"); -}; +#include "std/io.toc"; // it would be nice if Arr.data.len == Arr.len (: but this will require some C code... Arr ::= fn (t :: Type) Type { |