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