opt_fbs.c revision 1.3
1/* $NetBSD: opt_fbs.c,v 1.3 2021/10/16 21:32:10 rillig Exp $ */ 2/* $FreeBSD$ */ 3 4/* 5 * Tests for the options '-fbs' and '-nfbs'. 6 * 7 * The option '-fbs' splits the function declaration and the opening brace 8 * across two lines. 9 * 10 * The option '-nfbs' places the opening brace of a function definition in the 11 * same line as the function declaration. 12 * 13 * See '-bl', '-br'. 14 */ 15 16#indent input 17void example(int n) {} 18#indent end 19 20#indent run -fbs 21void 22example(int n) 23{ 24} 25#indent end 26 27#indent run -nfbs 28void 29example(int n) { 30} 31#indent end 32