summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cs/60008-UNI-17253.cs
blob: 9021a372a826b9e90b79ea77043510883a0250a0 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Extra test cases for  # 1257
switch (sometext)
{
    case "a":
        return 0;
    case "b":
        Console.WrieLine("hello world\n");

        return 0;
    case "c":
    {
        Console.WrieLine("hello world\n");

        return 0;
    }
    case "d":
        Console.WrieLine("hello world\n");

        if (hello)
            return 0;
        else
            return 1;

    case "e":
        Console.WrieLine("hello world\n");

        if (hello)
        {
            int a;
            int b;

            return 0;
        }

    case "f":
    {
        return 0;
    }
    case "g":

        return 0;

    case "h":
        for (i = 0; i < 10 i++)
        {
            a += i;

            return 0;
        }
    case "i":

        if (hello)
        {
            int a;
            int b;

            return 0;
        }

        return 1;
    default:
        return 0;
}