xref: /netbsd-src/tests/usr.bin/indent/psym_if_expr.c (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
1 /* $NetBSD: psym_if_expr.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */
2 
3 /*
4  * Tests for the parser symbol psym_if_expr, representing the parser state
5  * after reading the keyword 'if' and the controlling expression, now waiting
6  * for the statement of the 'then' branch.
7  */
8 
9 //indent input
10 void function(void) {
11 	if(cond) stmt();
12 }
13 //indent end
14 
15 //indent run
16 void
17 function(void)
18 {
19 	if (cond)
20 		stmt();
21 }
22 //indent end
23