foo(a,b)1*c85f09ccSJohn Levonint foo(a, b) 2*c85f09ccSJohn Levon int a; 3*c85f09ccSJohn Levon { 4*c85f09ccSJohn Levon if (b) 5*c85f09ccSJohn Levon return a; 6*c85f09ccSJohn Levon } 7*c85f09ccSJohn Levon 8*c85f09ccSJohn Levon /* 9*c85f09ccSJohn Levon * check-name: implicit-KR-arg-type1 10*c85f09ccSJohn Levon * check-command: sparse -Wold-style-definition -Wimplicit-int $file 11*c85f09ccSJohn Levon * 12*c85f09ccSJohn Levon * check-error-start 13*c85f09ccSJohn Levon implicit-KR-arg-type1.c:2:9: warning: non-ANSI definition of function 'foo' 14*c85f09ccSJohn Levon implicit-KR-arg-type1.c:1:12: error: missing type declaration for parameter 'b' 15*c85f09ccSJohn Levon * check-error-end 16*c85f09ccSJohn Levon */ 17