summaryrefslogtreecommitdiff
path: root/tests/indent/c/no_braces.c
blob: 544ac01d05bb7b5605d65f4a0c68f90ef26fb733 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
int foo(int x) {
    if (x > 10)
        return 10;
    else
        return x;

    while (1)
        x++;

    for (int i = 0; i < 3; ++i)
        x--;
}