opt_lc.c revision 1.1
11.1Srillig/* $NetBSD: opt_lc.c,v 1.1 2021/10/22 20:54:36 rillig Exp $ */
21.1Srillig/* $FreeBSD$ */
31.1Srillig
41.1Srillig/*
51.1Srillig * Tests for the option '-lc', which specifies the maximum line length for
61.1Srillig * block comments. This option does not apply to comments to the right of the
71.1Srillig * code though, or to the code itself.
81.1Srillig */
91.1Srillig
101.1Srillig#indent input
111.1Srilligvoid
121.1Srilligexample(int a, int b, int c, const char *cp)
131.1Srillig{
141.1Srillig	for (const char *p = cp; *p != '\0'; p++)
151.1Srillig		if (*p > a)
161.1Srillig			if (*p > b)
171.1Srillig				if (*p > c)
181.1Srillig					return;
191.1Srillig
201.1Srillig	function(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
211.1Srillig}
221.1Srillig#indent end
231.1Srillig
241.1Srillig#indent run-equals-input -lc38
25