Home | History | Annotate | Line # | Download | only in lint1
msg_147.c revision 1.4
      1 /*	$NetBSD: msg_147.c,v 1.4 2021/07/25 10:39:10 rillig Exp $	*/
      2 # 3 "msg_147.c"
      3 
      4 // Test for message: invalid cast from '%s' to '%s' [147]
      5 
      6 // The type name 'int(int)' is a 'function(int) returning int'.
      7 void take(int(int));
      8 
      9 /* ARGSUSED */
     10 void
     11 call_take(int (*ptr)(int))
     12 {
     13 	/* expect+1: error: invalid cast from 'pointer to function(int) returning int' to 'function(int) returning int' [147] */
     14 	take((int(int))ptr);
     15 }
     16