summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00052-brace-remove2.c
blob: 30f352c6711e7842400da7cc88859da9a2f2408a (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
/* else is tied to if(two) */
int main() {
	if (one) {
		if (two)
			sleep (1);
		else
			sleep (2);
	}

	if (three)
		sleep(1);
	else if (four)
		sleep(2);
}

/* else is tied to if(one) */
int main() {
	if (one) {
		if (two)
			sleep (1);
	}
	else if (three)
		sleep (2);
}

/* else.1 is tied to if(two), else.2 is tied to if(one) */
int main() {
	if (one) {
		if (two)
			sleep (1);
		else if (three)
			sleep (2);
	}
	else
		sleep (3);
}
int main() {

	if (read_write == I2C_SMBUS_READ)
		msg[1].len = I2C_SMBUS_I2C_BLOCK_MAX;
	else
		msg[0].len = data->block[0] + 1;
}