psym_decl.c revision 1.1
1/* $NetBSD: psym_decl.c,v 1.1 2021/11/18 21:19:19 rillig Exp $ */ 2/* $FreeBSD$ */ 3 4/* 5 * Tests for the parser symbol psym_decl, which represents a declaration. 6 * 7 * Since C99, declarations and statements can be mixed in blocks. 8 * 9 * A label can be followed by a statement but not by a declaration. 10 */ 11 12// TODO: prove that psym_decl can only ever occur at the top of the stack. 13// TODO: delete decl_level if the above is proven. 14 15#indent input 16// TODO: add input 17#indent end 18 19#indent run-equals-input 20