comparison: select the caller_info
[smatch.git] / validation / parsing / enum-attr.c
blob8d851a1621358842e8b5d548e1feaacffca0edca
1 #define __attr __attribute__((deprecated))
3 enum {
4 old __attr,
5 cur __attr = 42,
6 new,
7 };
9 enum odd {
10 odd = __attr 33,
13 enum bad {
14 bad = 43 __attr,
18 * check-name: enum-attr
20 * check-error-start
21 parsing/enum-attr.c:10:15: error: typename in expression
22 parsing/enum-attr.c:10:15: error: undefined identifier '__attribute__'
23 parsing/enum-attr.c:10:15: error: bad constant expression type
24 parsing/enum-attr.c:10:22: error: Expected } at end of specifier
25 parsing/enum-attr.c:10:22: error: got 33
26 parsing/enum-attr.c:14:18: error: Expected } at end of specifier
27 parsing/enum-attr.c:14:18: error: got __attribute__
28 * check-error-end