2017-02-10 09:31:39 +00:00
|
|
|
/* $FreeBSD$ */
|
|
|
|
/* See r303484 and r309342 */
|
2017-07-23 14:04:45 +00:00
|
|
|
void
|
2017-02-10 09:31:39 +00:00
|
|
|
t(void)
|
|
|
|
{
|
2018-06-03 14:03:20 +00: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 09:31:39 +00:00
|
|
|
{
|
|
|
|
|
2018-06-03 14:03:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-02-10 09:31:39 +00:00
|
|
|
|
2018-06-03 14:03:20 +00: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 09:31:39 +00:00
|
|
|
|
|
|
|
if (1)
|
|
|
|
;
|
|
|
|
else /* Old indent would get very confused here */
|
2018-06-03 14:03:20 +00:00
|
|
|
/* We also mustn't assume that there's only one comment */
|
|
|
|
/* before the left brace. */
|
2017-02-10 09:31:39 +00:00
|
|
|
{
|
|
|
|
|
2018-06-03 14:03:20 +00:00
|
|
|
|
2017-02-10 09:31:39 +00:00
|
|
|
}
|
|
|
|
}
|