1f08c3bdfSopenharmony_cienum a { 2f08c3bdfSopenharmony_ci A = ~0ULL, 3f08c3bdfSopenharmony_ci}; 4f08c3bdfSopenharmony_ci 5f08c3bdfSopenharmony_cistatic enum a a = A; 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_ci/* 8f08c3bdfSopenharmony_ci * check-name: bug-rshift-ub 9f08c3bdfSopenharmony_ci * check-description: 10f08c3bdfSopenharmony_ci * This test trigger(ed) a bug on x86 caused by a 11f08c3bdfSopenharmony_ci * full width shift (which is UB), expecting to get 12f08c3bdfSopenharmony_ci * 0 but giving the unshifted value and as result 13f08c3bdfSopenharmony_ci * the type is invalid: 14f08c3bdfSopenharmony_ci * warning: incorrect type in initializer (invalid types) 15f08c3bdfSopenharmony_ci * expected bad type enum a static [toplevel] a 16f08c3bdfSopenharmony_ci */ 17