opt_fbs.c revision 1.3
11.3Srillig/* $NetBSD: opt_fbs.c,v 1.3 2021/10/16 21:32:10 rillig Exp $ */
21.1Srillig/* $FreeBSD$ */
31.1Srillig
41.3Srillig/*
51.3Srillig * Tests for the options '-fbs' and '-nfbs'.
61.3Srillig *
71.3Srillig * The option '-fbs' splits the function declaration and the opening brace
81.3Srillig * across two lines.
91.3Srillig *
101.3Srillig * The option '-nfbs' places the opening brace of a function definition in the
111.3Srillig * same line as the function declaration.
121.3Srillig *
131.3Srillig * See '-bl', '-br'.
141.3Srillig */
151.3Srillig
161.1Srillig#indent input
171.1Srilligvoid example(int n) {}
181.1Srillig#indent end
191.1Srillig
201.1Srillig#indent run -fbs
211.1Srilligvoid
221.1Srilligexample(int n)
231.1Srillig{
241.1Srillig}
251.1Srillig#indent end
261.1Srillig
271.1Srillig#indent run -nfbs
281.1Srilligvoid
291.1Srilligexample(int n) {
301.1Srillig}
311.1Srillig#indent end
32