Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: msg_109.c,v 1.8 2025/04/12 15:49:50 rillig Exp $	*/
      2 # 3 "msg_109.c"
      3 
      4 // Test for message: void type invalid in expression [109]
      5 
      6 /* lint1-extra-flags: -X 351 */
      7 
      8 /* ARGSUSED */
      9 int
     10 example(int arg)
     11 {
     12 	/* expect+2: error: void type invalid in expression [109] */
     13 	/* expect+1: error: function 'example' expects to return value [214] */
     14 	return arg + (void)4;
     15 }
     16