xref: /netbsd-src/tests/usr.bin/indent/opt_i.c (revision 47306038c7d906b62edca1fd252c0e0d0772f5a0)
1 /* $NetBSD: opt_i.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */
2 
3 /*
4  * Tests for the option '-i', which specifies the indentation for a single
5  * brace level.
6  */
7 
8 //indent input
9 void
example(void)10 example(void)
11 {
12    if (1 > 0) if (2 > 1) return yes; return no;
13 }
14 //indent end
15 
16 //indent run -i3
17 void
example(void)18 example(void)
19 {
20    if (1 > 0)
21       if (2 > 1)
22 	 return yes;
23    return no;
24 }
25 //indent end
26