Init new repository
This commit is contained in:
11
tests/switch5.txt
Normal file
11
tests/switch5.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
main :: proc(): int {
|
||||
value := 4;
|
||||
switch value {
|
||||
case 4: { value -= 1; } @fallthrough
|
||||
case 3: { value -= 1; } @fallthrough
|
||||
case 2: { value -= 1; } @fallthrough
|
||||
case 1: { value -= 1; } @fallthrough
|
||||
default: a := 10; @unused
|
||||
}
|
||||
return value;
|
||||
}
|
||||
Reference in New Issue
Block a user