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