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