xref: /netbsd-src/tests/usr.bin/indent/lsym_if.c (revision aef5eb5f59cdfe8314f1b5f78ac04eb144e44010)
1 /* $NetBSD: lsym_if.c,v 1.4 2022/04/24 10:36:37 rillig Exp $ */
2 
3 /*
4  * Tests for the token lsym_if, which represents the keyword 'if' that starts
5  * an 'if' or 'if-else' statement.
6  */
7 
8 //indent input
9 void
10 function(void)
11 {
12 	if(cond)stmt();
13 }
14 //indent end
15 
16 //indent run
17 void
18 function(void)
19 {
20 	if (cond)
21 		stmt();
22 }
23 //indent end
24