xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_257.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_257.c,v 1.5 2022/06/22 19:23:18 rillig Exp $	*/
2 # 3 "msg_257.c"
3 
4 // Test for message: extra characters in lint comment [257]
5 
6 void take(const void *);
7 
8 /* expect+1: warning: extra characters in lint comment [257] */
9 /* FALLTHROUGH 3 */
10 
11 /* expect+1: warning: extra characters in lint comment [257] */
12 /* FALLTHROUGH extra */
13 
14 /* PRINTFLIKE 7 */
15 void
16 my_printf(const char *fmt)
17 /* expect+1: warning: argument number mismatch with directive ** PRINTFLIKE ** [283] */
18 {
19 	take(fmt);
20 }
21 
22 /* expect+1: warning: extra characters in lint comment [257] */
23 /* SCANFLIKE extra */
24 void
25 my_scanf(const char *fmt)
26 {
27 	take(fmt);
28 }
29