diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,9 +1,10 @@ #include "std/io.toc", io; main ::= fn() { - file, err := io.fopen_write("test.txt"); - for i := 0.,1000000 { - io.fputs(file, "!"); - } - io.fclose(file); + foo(12); +} + +use io; + +foo ::= fn(x :: int) { + puti(x); } -main(); |