expressions: make assign_expression() take an op argument
[smatch.git] / validation / enum-mismatch.c
blob9a929d24ca0a521f99a95fbc0f560daa7698a819
1 enum ea { A = 0, };
2 enum eb { B = 1, };
5 static enum eb foo(enum ea a)
7 return a;
11 * check-name: enum-mismatch
12 * check-command: sparse -Wenum-mismatch $file
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