db/fixup_kernel.sh: fix clear_user() handling
[smatch.git] / validation / enum-mismatch.c
bloba6e5d72dbc0948819d8837e6473998d1b0276c53
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: unsigned int enum ea
17 enum-mismatch.c:7:16: unsigned int enum eb
18 * check-error-end