117683Spst/* $NetBSD: opt_bap_sob.c,v 1.5 2023/05/11 18:13:55 rillig Exp $ */
239291Sfenner
317683Spst/*
417683Spst * Before 2023-05-11, the combination of -bap and -sob, which occurs in the
517683Spst * example indent.pro from NetBSD, removed the empty line above the
617683Spst * separator.  Seen in games/cgram/cgram.c.
717683Spst */
817683Spst
917683Spst//indent input
1017683Spstvoid
1117683Spstfunction1(void)
1217683Spst{
1317683Spst}
1417683Spst
1517683Spst///// C99 separator /////
1617683Spst
1717683Spstvoid
1817683Spstfunction2(void)
1917683Spst{
2017683Spst}
2117683Spst
22127664Sbms/* C block separator */
23147894Ssam
2417683Spstvoid
2517683Spstfunction3(void)
2675107Sfenner{
2775107Sfenner}
2875107Sfenner//indent end
2975107Sfenner
3017683Spst//indent run-equals-input -bap -sob
3117683Spst
3217683Spst/*
3317683Spst * XXX: Strangely, the option '-nbap' keeps the empty lines after the
3417683Spst * function bodies.  That's exactly the opposite of the behavior that's
3517683Spst * described in the manual.
3617683Spst */
3717683Spst//indent run-equals-input -nbap -sob
3817683Spst
3917683Spst/*
4017683Spst * Without '-sob', the option '-bap' works as intended.
4117683Spst */
4217683Spst//indent run-equals-input -bap
4317683Spst