summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc15
1 files changed, 3 insertions, 12 deletions
diff --git a/test.toc b/test.toc
index 48c31a6..6acebc5 100644
--- a/test.toc
+++ b/test.toc
@@ -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(){}