aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-18 19:15:35 +0200
committerlemon <lsof@mailbox.org>2022-08-18 19:15:35 +0200
commit8f3f9a5ba1fe069edf9d64f0d6743b9b3d9f5bcb (patch)
tree2aad40c700579a45185056a15a8be107adabcc1a /bootstrap/test.cff
parent9c485da5e1d955031fa2a3654bfc2ef814898167 (diff)
iswitch
Diffstat (limited to 'bootstrap/test.cff')
-rw-r--r--bootstrap/test.cff9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstrap/test.cff b/bootstrap/test.cff
index c7309a9..6f20b6e 100644
--- a/bootstrap/test.cff
+++ b/bootstrap/test.cff
@@ -109,6 +109,15 @@ extern fn main (argc int, argv **u8) int {
printf("sizeof *void = %zu\n", sizeof *void);
printf("1.2 -> %#.8x\n", transmute(u32, 1.2f));
+ switch is.#len {
+ case 0, 1;
+ is.#len < 2;
+ case 3;
+ 3;
+ case else;
+ "idk";
+ }
+
return 0;
}