1f08c3bdfSopenharmony_cistatic int a[] = { 2f08c3bdfSopenharmony_ci [(int)0] = 0, // OK 3f08c3bdfSopenharmony_ci [(int)(int)0] = 0, // OK 4f08c3bdfSopenharmony_ci [(int)0.] = 0, // OK 5f08c3bdfSopenharmony_ci [(int)(int)0.] = 0, // OK 6f08c3bdfSopenharmony_ci [(int)__builtin_choose_expr(0, 0, 0)] = 0, // OK 7f08c3bdfSopenharmony_ci [(int)__builtin_choose_expr(0, 0, 0.)] = 0, // OK 8f08c3bdfSopenharmony_ci 9f08c3bdfSopenharmony_ci [(int)(float)0] = 0, // KO 10f08c3bdfSopenharmony_ci [(int)(float)0.] = 0, // KO 11f08c3bdfSopenharmony_ci 12f08c3bdfSopenharmony_ci [(int)(void*)0] = 0, // KO 13f08c3bdfSopenharmony_ci [(int)(void*)0.] = 0, // KO 14f08c3bdfSopenharmony_ci 15f08c3bdfSopenharmony_ci}; 16f08c3bdfSopenharmony_ci/* 17f08c3bdfSopenharmony_ci * check-name: constexprness in casts 18f08c3bdfSopenharmony_ci * 19f08c3bdfSopenharmony_ci * check-error-start 20f08c3bdfSopenharmony_ciconstexpr-cast.c:9:11: error: bad integer constant expression 21f08c3bdfSopenharmony_ciconstexpr-cast.c:10:11: error: bad integer constant expression 22f08c3bdfSopenharmony_ciconstexpr-cast.c:12:11: error: bad integer constant expression 23f08c3bdfSopenharmony_ciconstexpr-cast.c:13:11: error: bad integer constant expression 24f08c3bdfSopenharmony_ci * check-error-end 25f08c3bdfSopenharmony_ci */ 26