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