diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -1,13 +1,4 @@ -#include "std/io.toc", io; -#include "std/mem.toc"; - -main ::= fn() { - file, err := io.fopen_write("test.txt"); - - for i := 0.,1000000 { - io.fputs(file, "!"); - } - - io.fclose(file); +n ::= nms { + putchar ::= #foreign("putchar") fn(#C int) #C int; } -main(); +main ::= fn(){} |