xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_050.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_050.c,v 1.5 2022/06/20 21:13:36 rillig Exp $	*/
2 # 3 "msg_050.c"
3 
4 /* Test for message: argument '%s' has function type, should be pointer [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: argument 'f' has function type, should be pointer [50] */
13     function f;
14 {
15 }
16