1#define __attr __attribute__((deprecated)) 2 3enum { 4 old __attr, 5 cur __attr = 42, 6 new, 7}; 8 9enum odd { 10 odd = __attr 33, 11}; 12 13enum bad { 14 bad = 43 __attr, 15}; 16 17/* 18 * check-name: enum-attr 19 * 20 * check-error-start 21parsing/enum-attr.c:10:15: error: typename in expression 22parsing/enum-attr.c:10:15: error: undefined identifier '__attribute__' 23parsing/enum-attr.c:10:15: error: bad constant expression type 24parsing/enum-attr.c:10:22: error: Expected } at end of specifier 25parsing/enum-attr.c:10:22: error: got 33 26parsing/enum-attr.c:14:18: error: Expected } at end of specifier 27parsing/enum-attr.c:14:18: error: got __attribute__ 28 * check-error-end 29 */ 30