1 /* $NetBSD: opt_bap_sob.c,v 1.5 2023/05/11 18:13:55 rillig Exp $ */
2
3 /*
4 * Before 2023-05-11, the combination of -bap and -sob, which occurs in the
5 * example indent.pro from NetBSD, removed the empty line above the
6 * separator. Seen in games/cgram/cgram.c.
7 */
8
9 //indent input
10 void
function1(void)11 function1(void)
12 {
13 }
14
15 ///// C99 separator /////
16
17 void
function2(void)18 function2(void)
19 {
20 }
21
22 /* C block separator */
23
24 void
function3(void)25 function3(void)
26 {
27 }
28 //indent end
29
30 //indent run-equals-input -bap -sob
31
32 /*
33 * XXX: Strangely, the option '-nbap' keeps the empty lines after the
34 * function bodies. That's exactly the opposite of the behavior that's
35 * described in the manual.
36 */
37 //indent run-equals-input -nbap -sob
38
39 /*
40 * Without '-sob', the option '-bap' works as intended.
41 */
42 //indent run-equals-input -bap
43