summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/01007-mod_case_brace.c
blob: 2ea3dea535fba093daa32fa68875e8abe2e9315e (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
64
65
66
67
68
69
70
71
int foo(int bar)
{
   switch (bar)
   {
   case 0:
      {
         showit(0);
      }
      c++;
      break;

   case 1:
      {
         showit(bar);
         break;
      }

   case 2:
      {
         break;
      }

   case 3:
      {
         int a = bar * 3;
         showit(a);
      }
      c++;
      break;

   case 4:
      {
         foo(bar - 1);
         {
            showit(0);
         }
      }

   case 10:
      {
         switch (gl_bug)
         {
         case 'a':
            {
               gl_foo = true;
               break;
            }

         case 'b':
         case 'c':
            {
               gl_foo = false;
               break;
            }

         default:
            {
               // nothing
               break;
            }
         }
         break;
      }

   default:
      {
         break;
      }
   }
   return(-1);
}