xref: /netbsd-src/tests/usr.bin/indent/opt_bap_sob.c (revision 122b5006ee1bd67145794b4cde92f4fe4781a5ec)
1 /* $NetBSD: opt_bap_sob.c,v 1.1 2021/10/23 20:30:23 rillig Exp $ */
2 /* $FreeBSD$ */
3 
4 /*
5  * As of 2021-03-08, the combination of -bap and -sob, which occurs in the
6  * example indent.pro from NetBSD, removes the empty line above the
7  * separator.  Seen in games/cgram/cgram.c.
8  */
9 
10 #indent input
11 void
12 function1(void)
13 {
14 }
15 
16 ///// separator /////
17 
18 void
19 function2(void)
20 {
21 }
22 #indent end
23 
24 #indent run -bap -sob
25 void
26 function1(void)
27 {
28 }
29 /* $ FIXME: Keep the empty line between the '}' and the '//'. */
30 ///// separator /////
31 
32 void
33 function2(void)
34 {
35 }
36 #indent end
37