Home | History | Annotate | Line # | Download | only in lint1
msg_327.c revision 1.4
      1 /*	$NetBSD: msg_327.c,v 1.4 2021/03/20 14:17:56 rillig Exp $	*/
      2 # 3 "msg_327.c"
      3 
      4 /* Test for message: declarations after statements is a C99 feature [327] */
      5 
      6 /* lint1-flags: -w */
      7 
      8 void statement(void);
      9 
     10 /*ARGSUSED*/
     11 void
     12 example(void)
     13 {
     14 	statement();
     15 	int declaration_1;	/* FIXME: expect 327 */
     16 	statement();
     17 	int declaration_2;	/* expect: 327 */
     18 	statement();
     19 	int declaration_3;	/* expect: 327 */
     20 }				/*FIXME*//* expect: syntax error '}' */
     21 
     22 /*FIXME*//* expect+1: cannot recover */
     23