BurritOS/test/riscv_instructions/boolean_logic/switch.c

7 lines
108 B
C
Raw Normal View History

2023-02-08 16:01:41 +01:00
int main() {
int x = 0;
2023-03-01 13:56:12 +01:00
switch(x) {
2023-02-08 16:01:41 +01:00
case 1: x = 1; break;
2023-03-01 13:56:12 +01:00
default: return 0;
2023-02-08 16:01:41 +01:00
}
}