33 lines
597 B
C
33 lines
597 B
C
/* $NetBSD: msg_283.c,v 1.8 2023/08/02 18:51:25 rillig Exp $ */
|
|
# 3 "msg_283.c"
|
|
|
|
// Test for message: parameter number mismatch in comment /* %s */ [283]
|
|
|
|
/* Do not warn about unused parameters. */
|
|
/* lint1-extra-flags: -X 231,351 */
|
|
|
|
/* PRINTFLIKE */
|
|
void
|
|
printflike_comment(const char *fmt)
|
|
{
|
|
}
|
|
|
|
/* PRINTFLIKE 0 */
|
|
void
|
|
printflike_0_comment(const char *fmt)
|
|
{
|
|
}
|
|
|
|
/* PRINTFLIKE 2 */
|
|
void
|
|
printflike_2_comment(int a, const char *fmt)
|
|
{
|
|
}
|
|
|
|
/* PRINTFLIKE 3 */
|
|
void
|
|
printflike_3_comment(int a, const char *fmt)
|
|
/* expect+1: warning: parameter number mismatch in comment ** PRINTFLIKE ** [283] */
|
|
{
|
|
}
|