blob: 5ae2eed8f8220f3d101395efdc847288cde0b508 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* $NetBSD: token_if_expr_stmt_else.c,v 1.1 2021/10/18 22:30:34 rillig Exp $ */
/* $FreeBSD$ */
/*
* Tests for 'if' followed by a parenthesized expression, a statement and the
* keyword 'else'.
*
* At this point, the statement needs to be completed with another statement.
*/
#indent input
void
function(void)
{
if (cond)
stmt();
else
stmt();
}
#indent end
#indent run-equals-input
|