opt_bbb.c revision 1.9
11.9Srillig/* $NetBSD: opt_bbb.c,v 1.9 2023/06/17 22:09:24 rillig Exp $ */
21.1Srillig
31.3Srillig/*
41.3Srillig * Tests for the options '-bbb' and '-nbbb'.
51.3Srillig *
61.3Srillig * The option '-bbb' forces a blank line before every block comment.
71.3Srillig *
81.3Srillig * The option '-nbbb' keeps everything as is.
91.3Srillig */
101.3Srillig
111.6Srillig//indent input
121.1Srillig/*
131.1Srillig * This is a block comment.
141.1Srillig */
151.1Srillig/* This is not a block comment since it is single-line. */
161.1Srillig/*
171.1Srillig * This is a second block comment.
181.1Srillig */
191.1Srillig/* This is not a block comment. */
201.1Srillig/*
211.1Srillig * Documentation of global_variable.
221.1Srillig */
231.4Srilligint		global_variable;
241.1Srillig/*
251.1Srillig * Documentation of function_declaration.
261.1Srillig */
271.4Srilligvoid		function_declaration(void);
281.1Srillig/*
291.1Srillig * Documentation of function_definition.
301.1Srillig */
311.1Srilligvoid
321.1Srilligfunction_definition(void)
331.1Srillig{
341.1Srillig}
351.6Srillig//indent end
361.1Srillig
371.6Srillig//indent run -bbb
381.1Srillig/*
391.1Srillig * This is a block comment.
401.1Srillig */
411.1Srillig/* This is not a block comment since it is single-line. */
421.8Srillig
431.1Srillig/*
441.1Srillig * This is a second block comment.
451.1Srillig */
461.1Srillig/* This is not a block comment. */
471.8Srillig
481.1Srillig/*
491.1Srillig * Documentation of global_variable.
501.1Srillig */
511.1Srilligint		global_variable;
521.8Srillig
531.1Srillig/*
541.1Srillig * Documentation of function_declaration.
551.1Srillig */
561.1Srilligvoid		function_declaration(void);
571.8Srillig
581.1Srillig/*
591.1Srillig * Documentation of function_definition.
601.1Srillig */
611.1Srilligvoid
621.1Srilligfunction_definition(void)
631.1Srillig{
641.1Srillig}
651.6Srillig//indent end
661.1Srillig
671.6Srillig//indent run-equals-input -nbbb
681.9Srillig
691.9Srillig
701.9Srillig//indent input
711.9Srillig{
721.9Srilliglabel:				/* not a block comment */
731.9Srillig	stmt;			/* not a block comment */
741.9Srillig	/**
751.9Srillig	 * block comment
761.9Srillig	 */
771.9Srillig}
781.9Srillig//indent end
791.9Srillig
801.9Srillig//indent run -bbb
811.9Srillig{
821.9Srilliglabel:				/* not a block comment */
831.9Srillig	stmt;			/* not a block comment */
841.9Srillig
851.9Srillig	/**
861.9Srillig	 * block comment
871.9Srillig	 */
881.9Srillig}
891.9Srillig//indent end
90