5 enum good
compat_int(void) { return 1; }
10 void farg(enum good a
);
11 void farg(enum bad a
) { }
17 enum bad
fret(void) { return 0; }
27 * check-name: enum-typecheck
28 * check-command: sparse -Wno-decl $file
32 enum-typecheck.c:8:6: error: symbol 'parg' redeclared with different type
33 enum-typecheck.c:11:6: error: symbol 'farg' redeclared with different type
34 enum-typecheck.c:14:11: error: symbol 'pret' redeclared with different type
35 enum-typecheck.c:17:11: error: symbol 'fret' redeclared with different type
36 enum-typecheck.c:21:12: error: symbol 'ptr' redeclared with different type
37 enum-typecheck.c:24:20: warning: incorrect type in initializer (different type sizes)