summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/01070-various_colons.c
blob: 0850b17e79c66ddc1f9f0d2b968b96e52e130609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
struct foo {unsigned int a : 4;
	    int          b : 4;
};
int bar(int x){
	switch (x) {
	case 1: return 2;

	case 4: return 4;

	case 6: return 8;

	case 10: return 19;
	} return 0;
}
int main(void){
	bar(10);
foo:
	bar(-9);
	bar(9);
baz:
	return 0;
}