xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_285.c (revision 3d6a50253cd682dca85a66a49baee893251dac65)
1 /*	$NetBSD: msg_285.c,v 1.7 2025/01/03 03:14:47 rillig Exp $	*/
2 # 3 "msg_285.c"
3 
4 // Test for message: prototype declaration [285]
5 
6 /* lint1-extra-flags: -r -X 351 */
7 
8 /* expect+1: prototype declaration [285] */
9 void function(int, int, int);
10 
11 /* ARGSUSED */
12 extern void
13 /* expect+1: warning: function definition for 'function' with identifier list is obsolete in C23 [384] */
14 function(a, b)
15     int a, b;
16 /* expect+1: error: parameter mismatch: 3 declared, 2 defined [51] */
17 {
18 }
19