1 enum ea { A = 0, };
   2 enum eb { B = 1, };
   3 
   4 
   5 static enum eb foo(enum ea a)
   6 {
   7         return a;
   8 }
   9 
  10 /*
  11  * check-name: enum-mismatch
  12  * check-command: sparse -Wenum-mismatch $file
  13  *
  14  * check-error-start
  15 enum-mismatch.c:7:16: warning: mixing different enum types
  16 enum-mismatch.c:7:16:     int enum ea  versus
  17 enum-mismatch.c:7:16:     int enum eb 
  18  * check-error-end
  19  */