summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/Issue_2281.cpp
blob: 44b9e75f40fda9f38878542113eb4e78ff14f124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
int foo(int op)
{
        switch (op)
        {
        case 1:
                do_something();
        break;
        case 2:
                do_something_else();
        case 3:
                if (do_something_different())
                {
                        do_this();
                break; // this should be indented like the surrounding code
                }
                do_something_more();
        break;
        }
        return -1;
        for (;;)
        {
        break;
        }
}