xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_050.c (revision 3117ece4fc4a4ca4489ba793710b60b0d26bab6c)
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