Home | History | Annotate | Line # | Download | only in lint1
msg_109.c revision 1.5
      1 /*	$NetBSD: msg_109.c,v 1.5 2022/06/16 16:58:36 rillig Exp $	*/
      2 # 3 "msg_109.c"
      3 
      4 // Test for message: void type illegal in expression [109]
      5 
      6 /* ARGSUSED */
      7 int
      8 example(int arg)
      9 {
     10 	/* expect+2: error: void type illegal in expression [109] */
     11 	/* expect+1: warning: function 'example' expects to return value [214] */
     12 	return arg + (void)4;
     13 }
     14