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
example(int n)16 void example(int n) {}
17 //indent end
18
19 //indent run -fbs
20 void
example(int n)21 example(int n)
22 {
23 }
24 //indent end
25
26 //indent run -nfbs
27 void
example(int n)28 example(int n) {
29 }
30 //indent end
31