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