spacevim/bundle/nvim-treesitter-0.9.1/tests/indent/c/switch.c

17 lines
276 B
C
Raw Normal View History

2024-08-21 14:17:26 +08:00
void foo(int x) {
switch (x) {
case 1:
x += 1;
break;
case 2: x += 2;
break;
case 3: x += 3; break;
case 4: {
x += 4;
break;
}
default:
x = -x;
}
}