1f08c3bdfSopenharmony_ci#define __bitwise __attribute__((bitwise)) 2f08c3bdfSopenharmony_ci#define __force __attribute__((force)) 3f08c3bdfSopenharmony_ci 4f08c3bdfSopenharmony_citypedef int __bitwise apple_t; 5f08c3bdfSopenharmony_citypedef int __bitwise orange_t; 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_cienum fruit { 8f08c3bdfSopenharmony_ci A = (__force apple_t) 0, 9f08c3bdfSopenharmony_ci B = (__force orange_t) 1, 10f08c3bdfSopenharmony_ci}; 11f08c3bdfSopenharmony_ci 12f08c3bdfSopenharmony_ci/* 13f08c3bdfSopenharmony_ci * check-name: enum-bitwise-bad 14f08c3bdfSopenharmony_ci * 15f08c3bdfSopenharmony_ci * check-error-start 16f08c3bdfSopenharmony_cienum-bitwise-bad.c:9:14: error: incompatible restricted type 17f08c3bdfSopenharmony_cienum-bitwise-bad.c:9:14: expected: restricted apple_t 18f08c3bdfSopenharmony_cienum-bitwise-bad.c:9:14: got: restricted orange_t 19f08c3bdfSopenharmony_ci * check-error-end 20f08c3bdfSopenharmony_ci */ 21