xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_032.c (revision ccd9df534e375a4366c5b55f23782053c7a98d82)
1 /*	$NetBSD: msg_032.c,v 1.8 2023/08/02 18:51:25 rillig Exp $	*/
2 # 3 "msg_032.c"
3 
4 // Test for message: type of parameter '%s' defaults to 'int' [32]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 /* expect+5: error: old-style declaration; add 'int' [1] */
9 add(a, b, c)
10 /* expect+3: warning: type of parameter 'a' defaults to 'int' [32] */
11 /* expect+2: warning: type of parameter 'b' defaults to 'int' [32] */
12 /* expect+1: warning: type of parameter 'c' defaults to 'int' [32] */
13 {
14 	return a + b + c;
15 }
16