summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/30089-Issue_2281.cpp
blob: e0d8727d4c7c81c5541f2b8493f01314b0c307f6 (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;
        }
}