1extern int foo(int a, void *b); 2 3int 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 16old-style-definition1.c:4:9: warning: non-ANSI definition of function 'foo' 17 * check-error-end 18 */ 19