msg_032.c revision 1.9
11.9Srillig/* $NetBSD: msg_032.c,v 1.9 2024/12/01 18:37:54 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.9Srillig/* expect+1: warning: function definition 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