opt_lc.c revision 1.1
1/* $NetBSD: opt_lc.c,v 1.1 2021/10/22 20:54:36 rillig Exp $ */ 2/* $FreeBSD$ */ 3 4/* 5 * Tests for the option '-lc', which specifies the maximum line length for 6 * block comments. This option does not apply to comments to the right of the 7 * code though, or to the code itself. 8 */ 9 10#indent input 11void 12example(int a, int b, int c, const char *cp) 13{ 14 for (const char *p = cp; *p != '\0'; p++) 15 if (*p > a) 16 if (*p > b) 17 if (*p > c) 18 return; 19 20 function(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10); 21} 22#indent end 23 24#indent run-equals-input -lc38 25