Home | History | Annotate | Line # | Download | only in lint1
parse_stmt_error.c revision 1.1
      1 /*	$NetBSD: parse_stmt_error.c,v 1.1 2021/07/25 09:29:20 rillig Exp $	*/
      2 # 3 "parse_stmt_error.c"
      3 
      4 /*
      5  * Test parsing of errors in selection statements (if, switch).
      6  */
      7 
      8 void do_nothing(void);
      9 
     10 void
     11 cover_selection_statement_else(_Bool cond)
     12 {
     13 	if (cond)
     14 		do_nothing();
     15 	else
     16 		/* expect+1: syntax error ']' [249] */
     17 		];
     18 }
     19 
     20 void
     21 cover_selection_statement_switch(int x)
     22 {
     23 	switch (x)
     24 		/* expect+1: syntax error ']' [249] */
     25 		];
     26 }
     27