opt_ts.c revision 1.1
1/* $NetBSD: opt_ts.c,v 1.1 2021/10/22 20:54:36 rillig Exp $ */
2/* $FreeBSD$ */
3
4/*
5 * Tests for the option '-ts', which specifies the width of a single
6 * tabulator.
7 */
8
9/*
10 * Since in this test, a tab is only worth 4 spaces, the indentation needs
11 * more tabs to reach the indentation of 8 and the alignment at 16.
12 */
13#indent input
14int variable;
15
16void
17function(void)
18{
19	int local_variable;
20	char local_variable;
21}
22#indent end
23
24#indent run -ts4
25int				variable;
26
27void
28function(void)
29{
30		int				local_variable;
31		char			local_variable;
32}
33#indent end
34