1 
   2 extern int myfunction(void);
   3 
   4 extern int myfunction(void) { return 0; }
   5 
   6 /*
   7  * check-name: external-function-has-definition
   8  * check-command: sparse -Wno-external-function-has-definition $file
   9  *
  10  * check-error-start
  11  * check-error-end
  12  */