xref: /netbsd-src/tests/usr.bin/indent/opt_lc.c (revision 47306038c7d906b62edca1fd252c0e0d0772f5a0)
1 /* $NetBSD: opt_lc.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */
2 
3 /*
4  * Tests for the option '-lc', which specifies the maximum line length for
5  * block comments. This option does not apply to comments to the right of the
6  * code though, or to the code itself.
7  */
8 
9 //indent input
10 /*
11  * This block comment starts in column 1, it is broken into separate lines.
12  */
13 
14 int decl;			/* This is not a
15 				 * block comment, it is not affected by the option '-lc'.
16 				 */
17 //indent end
18 
19 //indent run -di0 -c17 -lc38
20 /*
21  * This block comment starts in column
22  * 1, it is broken into separate
23  * lines.
24  */
25 
26 int decl;	/* This is not a block comment, it is not affected by the
27 		 * option '-lc'. */
28 //indent end
29