xref: /netbsd-src/tests/usr.bin/indent/fmt_block.c (revision 122b5006ee1bd67145794b4cde92f4fe4781a5ec)
1 /* $NetBSD: fmt_block.c,v 1.1 2021/10/22 19:27:53 rillig Exp $ */
2 /* $FreeBSD$ */
3 
4 #indent input
5 void
6 function(void)
7 {
8 	if (true) {
9 
10 	}
11 
12 	{
13 		print("block");
14 	}
15 }
16 #indent end
17 
18 #indent run
19 void
20 function(void)
21 {
22 	if (true) {
23 
24 /* $ FIXME: indent must not merge these braces. */
25 	} {
26 /* $ FIXME: the following empty line was not in the input. */
27 
28 		print("block");
29 	}
30 }
31 #indent end
32