comparison: select the caller_info
[smatch.git] / validation / enum-type-dubious.c
blobf2cb39fcdbffe2507011a0fc77cf726154f06d38
1 enum foobar {
2 FOO = (void*)0,
3 BAR = (void*)1,
4 BAZ = (int*)0,
5 QUX = (int*)123,
6 };
8 /*
9 * check-name: enum-type-dubious
10 * check-known-to-fail
12 * check-error-start
13 validation/enum-type-dubious.c:2:8: error: enumerator value for 'FOO' is not an integer constant
14 validation/enum-type-dubious.c:3:8: error: enumerator value for 'BAR' is not an integer constant
15 validation/enum-type-dubious.c:4:8: error: enumerator value for 'BAZ' is not an integer constant
16 validation/enum-type-dubious.c:5:8: error: enumerator value for 'QUX' is not an integer constant
17 * check-error-end