2017-02-10 04:31:39 -05:00
|
|
|
/* $FreeBSD$ */
|
|
|
|
|
/* See r303484 and r309342 */
|
2017-07-23 10:04:45 -04:00
|
|
|
void
|
2017-02-10 04:31:39 -05:00
|
|
|
t(void)
|
|
|
|
|
{
|
2018-06-03 10:03:20 -04:00
|
|
|
/* The two if statements below excercise two different code paths. */
|
|
|
|
|
|
|
|
|
|
if (1) /* a */
|
|
|
|
|
int a;
|
|
|
|
|
else /* b */
|
|
|
|
|
int b;
|
|
|
|
|
|
|
|
|
|
if (1) /* a */
|
|
|
|
|
int a;
|
|
|
|
|
else /* b */
|
|
|
|
|
int b;
|
|
|
|
|
|
|
|
|
|
if (1)
|
2017-02-10 04:31:39 -05:00
|
|
|
{
|
|
|
|
|
|
2018-06-03 10:03:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2017-02-10 04:31:39 -05:00
|
|
|
|
2018-06-03 10:03:20 -04:00
|
|
|
/* Old indent would remove the 3 blank lines above, awaiting "else". */
|
|
|
|
|
|
|
|
|
|
if (1)
|
|
|
|
|
{
|
|
|
|
|
int a;
|
|
|
|
|
} else if (0)
|
|
|
|
|
{
|
|
|
|
|
int b;
|
|
|
|
|
}
|
|
|
|
|
/* test */
|
|
|
|
|
else
|
|
|
|
|
;
|
2017-02-10 04:31:39 -05:00
|
|
|
|
|
|
|
|
if (1)
|
|
|
|
|
;
|
|
|
|
|
else /* Old indent would get very confused here */
|
2018-06-03 10:03:20 -04:00
|
|
|
/* We also mustn't assume that there's only one comment */
|
|
|
|
|
/* before the left brace. */
|
2017-02-10 04:31:39 -05:00
|
|
|
{
|
|
|
|
|
|
2018-06-03 10:03:20 -04:00
|
|
|
|
2017-02-10 04:31:39 -05:00
|
|
|
}
|
|
|
|
|
}
|