aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/c/loop.c
blob: facaebb6bd40fc196772c27a09ac40bc76230378 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
void foo(int x)
{
    while (x > 0) {
        x--;
        continue;
    }

    for (int i = 0; i < 5; ++i) {
        x++;
        break;
    }

    do {
        x++;
    } while (x < 0);
}