math: fix an out of memory issue
[smatch.git] / validation / enum-mismatch.c
blob6db016fbc6587ebcf6e0b571602f626a0106e5ec
1 #include "enum-common.c"
3 /*
4 * check-name: -Wenum-mismatch
5 * check-command: sparse -Wenum-mismatch -Wno-int-to-enum $file
7 * check-error-start
8 enum-common.c:57:45: warning: mixing different enum types
9 enum-common.c:57:45: int enum ENUM_TYPE_B versus
10 enum-common.c:57:45: int enum ENUM_TYPE_A
11 enum-common.c:58:45: warning: mixing different enum types
12 enum-common.c:58:45: int enum ENUM_TYPE_B versus
13 enum-common.c:58:45: int enum ENUM_TYPE_A
14 enum-common.c:54:22: warning: mixing different enum types
15 enum-common.c:54:22: int enum ENUM_TYPE_B versus
16 enum-common.c:54:22: int enum ENUM_TYPE_A
17 enum-common.c:55:22: warning: mixing different enum types
18 enum-common.c:55:22: int enum <noident> versus
19 enum-common.c:55:22: int enum ENUM_TYPE_A
20 enum-common.c:64:45: warning: mixing different enum types
21 enum-common.c:64:45: int enum <noident> versus
22 enum-common.c:64:45: int enum ENUM_TYPE_A
23 enum-common.c:65:45: warning: mixing different enum types
24 enum-common.c:65:45: int enum <noident> versus
25 enum-common.c:65:45: int enum ENUM_TYPE_A
26 enum-common.c:62:22: warning: mixing different enum types
27 enum-common.c:62:22: int enum ENUM_TYPE_A versus
28 enum-common.c:62:22: int enum <noident>
29 enum-common.c:69:17: warning: mixing different enum types
30 enum-common.c:69:17: int enum ENUM_TYPE_B versus
31 enum-common.c:69:17: int enum ENUM_TYPE_A
32 enum-common.c:70:17: warning: mixing different enum types
33 enum-common.c:70:17: int enum <noident> versus
34 enum-common.c:70:17: int enum ENUM_TYPE_B
35 enum-common.c:71:25: warning: mixing different enum types
36 enum-common.c:71:25: int enum ENUM_TYPE_A versus
37 enum-common.c:71:25: int enum <noident>
38 enum-common.c:74:17: warning: mixing different enum types
39 enum-common.c:74:17: int enum ENUM_TYPE_B versus
40 enum-common.c:74:17: int enum ENUM_TYPE_A
41 enum-common.c:75:17: warning: mixing different enum types
42 enum-common.c:75:17: int enum <noident> versus
43 enum-common.c:75:17: int enum ENUM_TYPE_B
44 enum-common.c:76:25: warning: mixing different enum types
45 enum-common.c:76:25: int enum ENUM_TYPE_A versus
46 enum-common.c:76:25: int enum <noident>
47 * check-error-end