msg_032.c revision 1.10
11.10Srillig/*	$NetBSD: msg_032.c,v 1.10 2025/01/03 03:14:47 rillig Exp $	*/
21.1Srillig# 3 "msg_032.c"
31.1Srillig
41.8Srillig// Test for message: type of parameter '%s' defaults to 'int' [32]
51.1Srillig
61.7Srillig/* lint1-extra-flags: -X 351 */
71.7Srillig
81.10Srillig/* expect+1: warning: function definition for 'add' with identifier list is obsolete in C23 [384] */
91.3Srilligadd(a, b, c)
101.9Srillig/* expect+4: error: old-style declaration; add 'int' [1] */
111.8Srillig/* expect+3: warning: type of parameter 'a' defaults to 'int' [32] */
121.8Srillig/* expect+2: warning: type of parameter 'b' defaults to 'int' [32] */
131.8Srillig/* expect+1: warning: type of parameter 'c' defaults to 'int' [32] */
141.3Srillig{
151.3Srillig	return a + b + c;
161.3Srillig}
17