aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/c/switch.c
blob: 4003bdb1df45548c8b7b10759f640f515bf42ea4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
    }
}