psym_semicolon.c revision 1.4
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
11void func(void) { stmt(); }
12//indent end
13
14//indent run
15void
16func(void)
17{
18	stmt();
19}
20//indent end
21
22//indent run -npsl
23void func(void)
24{
25	stmt();
26}
27//indent end
28
29//indent run -nfbs
30void
31func(void) {
32	stmt();
33}
34//indent end
35