summaryrefslogtreecommitdiff
path: root/tests/usr.bin/indent/opt_ts.c
blob: 3c1bfe3168d73a3e1755202da5dd012a5c2d72b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* $NetBSD: opt_ts.c,v 1.3 2022/04/24 09:04:12 rillig Exp $ */

/*
 * Tests for the option '-ts', which specifies the width of a single
 * tabulator.
 */

/*
 * Since in this test, a tab is only worth 4 spaces, the indentation needs
 * more tabs to reach the indentation of 8 and the alignment at 16.
 */
//indent input
int variable;

void
function(void)
{
	int local_variable;
	char local_variable;
}
//indent end

//indent run -ts4
int				variable;

void
function(void)
{
		int				local_variable;
		char			local_variable;
}
//indent end