From 8f3f9a5ba1fe069edf9d64f0d6743b9b3d9f5bcb Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 18 Aug 2022 19:15:35 +0200 Subject: iswitch --- bootstrap/test.cff | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bootstrap') 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; } -- cgit v1.2.3