aboutsummaryrefslogtreecommitdiff
path: root/test/1.cff
diff options
context:
space:
mode:
Diffstat (limited to 'test/1.cff')
-rw-r--r--test/1.cff17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/1.cff b/test/1.cff
new file mode 100644
index 0000000..cdda6b9
--- /dev/null
+++ b/test/1.cff
@@ -0,0 +1,17 @@
+import "libc.hff";
+
+extern fn main(argc int) int {
+ switch argc - 1 {
+ case 0, 1;
+ printf("zero or one\n");
+ case -1;
+ printf("???\n");
+ case 2;
+ printf("two");
+ printf("\n");
+ case 7;
+ //empty
+ case else
+ printf("its %d\n", argc);
+ }
+}