summaryrefslogtreecommitdiff
path: root/tests/usr.bin/indent/opt_lc.c
blob: fcb863b19c1c58e0421ff0052fa8d3ed7345ad23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* $NetBSD: opt_lc.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */

/*
 * Tests for the option '-lc', which specifies the maximum line length for
 * block comments. This option does not apply to comments to the right of the
 * code though, or to the code itself.
 */

//indent input
/*
 * This block comment starts in column 1, it is broken into separate lines.
 */

int decl;			/* This is not a
				 * block comment, it is not affected by the option '-lc'.
				 */
//indent end

//indent run -di0 -c17 -lc38
/*
 * This block comment starts in column
 * 1, it is broken into separate
 * lines.
 */

int decl;	/* This is not a block comment, it is not affected by the
		 * option '-lc'. */
//indent end