Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: msg_050.c,v 1.7 2023/07/09 11:18:55 rillig Exp $	*/
      2 # 3 "msg_050.c"
      3 
      4 /* Test for message: parameter '%s' has function type, should be pointer [50] */
      5 
      6 /* lint1-flags: -tw */
      7 
      8 typedef void (function)();
      9 
     10 /* expect+1: warning: parameter 'f' unused in function 'example' [231] */
     11 void example(f)
     12     /* expect+1: warning: parameter 'f' has function type, should be pointer [50] */
     13     function f;
     14 {
     15 }
     16