summaryrefslogtreecommitdiff
path: root/tests/usr.bin/indent/opt_i.c
blob: b0e1f85e180a4dd9115a708ebedee30559050f52 (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
/* $NetBSD: opt_i.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */

/*
 * Tests for the option '-i', which specifies the indentation for a single
 * brace level.
 */

//indent input
void
example(void)
{
   if (1 > 0) if (2 > 1) return yes; return no;
}
//indent end

//indent run -i3
void
example(void)
{
   if (1 > 0)
      if (2 > 1)
	 return yes;
   return no;
}
//indent end