1 #define __attr __attribute__((deprecated)) 2 3 enum { 4 old __attr, 5 cur __attr = 42, 6 new, 7 }; 8 9 enum odd { 10 odd = __attr 33, 11 }; 12 13 enum bad { 14 bad = 43 __attr, 15 }; 16 17 /* 18 * check-name: enum-attr 19 * 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 29 */ 30