summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc10
1 files changed, 6 insertions, 4 deletions
diff --git a/test.toc b/test.toc
index 88e007c..9df26cf 100644
--- a/test.toc
+++ b/test.toc
@@ -1,7 +1,9 @@
-#include "main.c", t;
-
main ::= fn() {
- t.puts("hi");
+ foo ::= #foreign("sleep", "libc.so.6") fn(#C unsigned) #C unsigned;
+ foo(1);
+ bar ::= foo;
+ bar(2);
+ x ::= 8;
}
-main();
+//main();