Debian Codegraph @

src/tools/pg_bsd_indent/tests/elsecomment.0.stdout

raw
1 /* $FreeBSD$ */
2 /* See r303484 and r309342 */
3 void
4 t(void)
5 {
6 /* The two if statements below exercise two different code paths. */
7
8 if (1) /* a */
9 int a;
10 else /* b */
11 int b;
12
13 if (1) /* a */
14 int a;
15 else /* b */
16 int b;
17
18 if (1)
19 {
20
21 }
22
23
24
25 /* Old indent would remove the 3 blank lines above, awaiting "else". */
26
27 if (1)
28 {
29 int a;
30 } else if (0)
31 {
32 int b;
33 }
34 /* test */
35 else
36 ;
37
38 if (1)
39 ;
40 else /* Old indent would get very confused here */
41 /* We also mustn't assume that there's only one comment */
42 /* before the left brace. */
43 {
44
45
46 }
47 }