11.11Srillig/* $NetBSD: opt_bbb.c,v 1.11 2023/06/18 07:32:33 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.10Srilliglabel:	/*
751.10Srillig	 * This is not a block comment, as it goes to the right.
761.10Srillig	 */
771.10Srillig	stmt;			/*
781.10Srillig				 * This is not a block comment, as it goes to
791.10Srillig				 * the right.
801.10Srillig				 */
811.9Srillig	/**
821.10Srillig	 * This is a block comment.
831.9Srillig	 */
841.9Srillig}
851.9Srillig//indent end
861.9Srillig
871.9Srillig//indent run -bbb
881.9Srillig{
891.9Srilliglabel:				/* not a block comment */
901.9Srillig	stmt;			/* not a block comment */
911.10Srilliglabel:				/* This is not a block comment, as it goes to
921.10Srillig				 * the right. */
931.10Srillig	stmt;			/* This is not a block comment, as it goes to
941.10Srillig				 * the right. */
951.10Srillig
961.9Srillig	/**
971.10Srillig	 * This is a block comment.
981.9Srillig	 */
991.9Srillig}
1001.9Srillig//indent end
101