summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cs/UNI-29933.cs
blob: ed96bc87bb42a11fe7b5ee0cb05291b6c035f780 (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
25
26
27
void Foo1()
{
    switch (foo)
    {
        case 1:
            _bar = new Bar(x, y,
                z, a);
            break;
        case 2:
            _bar = new Bar(x, y,
            z, a);
            break;
        case 3:
            _bar = foo.bar;
            break;
        case 4:
            foo.bar = Bar.BarFunc(x, (x == y)
                ? foo.x
                : foo.y);
            break;
        case 5:
            foo.bar = Bar.BarFunc(x, (x == y)
            ? foo.x
            : foo.y);
            break;
    }
}