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