summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc9
1 files changed, 6 insertions, 3 deletions
diff --git a/test.toc b/test.toc
index 825da51..66560f8 100644
--- a/test.toc
+++ b/test.toc
@@ -1,6 +1,9 @@
-puts ::= #foreign("puts", "libc.so.6") fn (#C int);
+putchar ::= #foreign("putchar", "libc.so.6") fn (#C int) #C int;
+
main ::= fn() {
- puts("Hello!");
-}; \ No newline at end of file
+ putchar(97);
+ putchar('\n' as i32);
+};
+main(); \ No newline at end of file