xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_032.c (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1 /*	$NetBSD: msg_032.c,v 1.6 2022/10/01 09:42:40 rillig Exp $	*/
2 # 3 "msg_032.c"
3 
4 // Test for message: type of argument '%s' defaults to 'int' [32]
5 
6 /* expect+5: error: old-style declaration; add 'int' [1] */
7 add(a, b, c)
8 /* expect+3: warning: type of argument 'a' defaults to 'int' [32] */
9 /* expect+2: warning: type of argument 'b' defaults to 'int' [32] */
10 /* expect+1: warning: type of argument 'c' defaults to 'int' [32] */
11 {
12 	return a + b + c;
13 }
14