msg_032.c revision 1.9
1/* $NetBSD: msg_032.c,v 1.9 2024/12/01 18:37:54 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 with identifier list is obsolete in C23 [384] */ 9add(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