1 /* $NetBSD: psym_semicolon.c,v 1.4 2023/05/12 22:36:15 rillig Exp $ */
2
3 /*
4 * Tests for the parser symbol psym_0 (formerly named psym_semicolon), which
5 * pushes a new statement on the stack.
6 *
7 * This token is never stored on the stack itself.
8 */
9
10 //indent input
func(void)11 void func(void) { stmt(); }
12 //indent end
13
14 //indent run
15 void
func(void)16 func(void)
17 {
18 stmt();
19 }
20 //indent end
21
22 //indent run -npsl
func(void)23 void func(void)
24 {
25 stmt();
26 }
27 //indent end
28
29 //indent run -nfbs
30 void
func(void)31 func(void) {
32 stmt();
33 }
34 //indent end
35