1 1.2 rillig /* $NetBSD: psym_for_exprs.c,v 1.2 2021/11/20 16:54:17 rillig Exp $ */ 2 1.1 rillig /* $FreeBSD$ */ 3 1.1 rillig 4 1.1 rillig /* 5 1.1 rillig * Tests for the parser state psym_for_exprs, which represents the state after 6 1.1 rillig * reading the keyword 'for' and the 3 expressions, now waiting for the body 7 1.1 rillig * of the loop. 8 1.1 rillig */ 9 1.1 rillig 10 1.1 rillig #indent input 11 1.1 rillig // TODO: add input 12 1.1 rillig #indent end 13 1.1 rillig 14 1.1 rillig #indent run-equals-input 15 1.2 rillig 16 1.2 rillig 17 1.2 rillig /* 18 1.2 rillig * Since C99, the first expression of a 'for' loop may be a declaration, not 19 1.2 rillig * only an expression. 20 1.2 rillig */ 21 1.2 rillig #indent input 22 1.2 rillig void 23 1.2 rillig function(void) 24 1.2 rillig { 25 1.2 rillig for (int i = 0; i < 3; i++) 26 1.2 rillig stmt(); 27 1.2 rillig } 28 1.2 rillig #indent end 29 1.2 rillig 30 1.2 rillig #indent run-equals-input 31