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