1 extern int foo(int a, void *b);
   2 
   3 int foo(a, b)
   4         int a;
   5         void *b;
   6 {
   7         if (b)
   8                 return a;
   9 }
  10 
  11 /*
  12  * check-name: old-stype-definition enabled
  13  * check-command: sparse -Wold-style-definition $file
  14  *
  15  * check-error-start
  16 old-style-definition1.c:4:9: warning: non-ANSI definition of function 'foo'
  17  * check-error-end
  18  */