1 /* $NetBSD: msg_032.c,v 1.10 2025/01/03 03:14:47 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+1: warning: function definition for 'add' with identifier list is obsolete in C23 [384] */ 9 add(a, b, c) 10 /* expect+4: error: old-style declaration; add 'int' [1] */ 11 /* expect+3: warning: type of parameter 'a' defaults to 'int' [32] */ 12 /* expect+2: warning: type of parameter 'b' defaults to 'int' [32] */ 13 /* expect+1: warning: type of parameter 'c' defaults to 'int' [32] */ 14 { 15 return a + b + c; 16 } 17