opt_fbs.c revision 1.5
11.5Srillig/* $NetBSD: opt_fbs.c,v 1.5 2022/04/24 09:04:12 rillig Exp $ */
21.1Srillig
31.3Srillig/*
41.3Srillig * Tests for the options '-fbs' and '-nfbs'.
51.3Srillig *
61.3Srillig * The option '-fbs' splits the function declaration and the opening brace
71.3Srillig * across two lines.
81.3Srillig *
91.3Srillig * The option '-nfbs' places the opening brace of a function definition in the
101.3Srillig * same line as the function declaration.
111.3Srillig *
121.3Srillig * See '-bl', '-br'.
131.3Srillig */
141.3Srillig
151.5Srillig//indent input
161.1Srilligvoid example(int n) {}
171.5Srillig//indent end
181.1Srillig
191.5Srillig//indent run -fbs
201.1Srilligvoid
211.1Srilligexample(int n)
221.1Srillig{
231.1Srillig}
241.5Srillig//indent end
251.1Srillig
261.5Srillig//indent run -nfbs
271.1Srilligvoid
281.1Srilligexample(int n) {
291.1Srillig}
301.5Srillig//indent end
31