summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_285.c
blob: 91c0327897d45f78a33e141322d7084ab22c6de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*	$NetBSD: msg_285.c,v 1.5 2023/03/28 14:44:35 rillig Exp $	*/
# 3 "msg_285.c"

// Test for message: prototype declaration [285]

/* lint1-extra-flags: -r -X 351 */

/* expect+1: prototype declaration [285] */
void function(int, int, int);

/* ARGSUSED */
extern void
function(a, b)
    int a, b;
/* expect+1: error: parameter mismatch: 3 declared, 2 defined [51] */
{
}