summaryrefslogtreecommitdiff
path: root/tests/usr.bin/indent/token_if_expr.c
blob: 1b23bc354319df03c3021c072012c367ad9b6dff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* $NetBSD: token_if_expr.c,v 1.1 2021/10/18 22:30:34 rillig Exp $ */
/* $FreeBSD$ */

/*
 * Tests for 'if' followed by a parenthesized expression.
 */

#indent input
void function(void) {
	if(cond) stmt();
}
#indent end

#indent run
void
function(void)
{
	if (cond)
		stmt();
}
#indent end