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