diff options
Diffstat (limited to 'tests/arr.toc')
-rw-r--r-- | tests/arr.toc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/arr.toc b/tests/arr.toc index 3af9edd..afcf340 100644 --- a/tests/arr.toc +++ b/tests/arr.toc @@ -1,19 +1,5 @@ #include "std/mem.toc"; -puti ::= fn(x: int) { -//tcc's giving me "incompatible types for redefinition of 'printf'" for some reason (even though the declarations have the exact same type) - #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 { |