Home | History | Annotate | Line # | Download | only in lint1
msg_050.c revision 1.4
      1 /*	$NetBSD: msg_050.c,v 1.4 2022/06/15 20:18:31 rillig Exp $	*/
      2 # 3 "msg_050.c"
      3 
      4 /* Test for message: a function is declared as an argument: %s [50] */
      5 
      6 /* lint1-flags: -Stw */
      7 
      8 typedef void (function)();
      9 
     10 /* expect+1: warning: argument 'f' unused in function 'example' [231] */
     11 void example(f)
     12     /* expect+1: warning: a function is declared as an argument: f [50] */
     13     function f;
     14 {
     15 }
     16