summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/c/brace-remove2.c
blob: e5b73723cda871a3f68bf7a40e615de791641ce4 (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
/* 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;
       }
}