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