summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/c/mod_case_brace.c
blob: 4bd9abde6b78e3f5065be9e48874ce4f34b62148 (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
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);
}