summaryrefslogtreecommitdiff
path: root/tests/usr.bin/indent/psym_semicolon.c
blob: 5165c19e9761036c8013aab9d877a6c32093484c (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
33
34
/* $NetBSD: psym_semicolon.c,v 1.4 2023/05/12 22:36:15 rillig Exp $ */

/*
 * Tests for the parser symbol psym_0 (formerly named psym_semicolon), which
 * pushes a new statement on the stack.
 *
 * This token is never stored on the stack itself.
 */

//indent input
void func(void) { stmt(); }
//indent end

//indent run
void
func(void)
{
	stmt();
}
//indent end

//indent run -npsl
void func(void)
{
	stmt();
}
//indent end

//indent run -nfbs
void
func(void) {
	stmt();
}
//indent end