summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cs/UNI-17253.cs
blob: 7342d82caba93969ab8eaed282b2fd751f0255d4 (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
// 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;
}