summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc15
1 files changed, 10 insertions, 5 deletions
diff --git a/test.toc b/test.toc
index 9df26cf..7ad22c4 100644
--- a/test.toc
+++ b/test.toc
@@ -1,9 +1,14 @@
+#include "std/io.toc", io;
+
main ::= fn() {
- foo ::= #foreign("sleep", "libc.so.6") fn(#C unsigned) #C unsigned;
- foo(1);
- bar ::= foo;
- bar(2);
- x ::= 8;
+ foo0 := int == int;
+ bar0 := int == float;
+ foo1 := &&&int == &&&u8;
+ bar1 := &&&int != &&∫
+ io.putb(foo0);
+ io.putb(bar0);
+ io.putb(foo1);
+ io.putb(bar1);
}
//main();