1f08c3bdfSopenharmony_cistatic int a[] = { 2f08c3bdfSopenharmony_ci [0 + 0] = 0, // OK 3f08c3bdfSopenharmony_ci [0 + 0.] = 0, // KO 4f08c3bdfSopenharmony_ci [(void*)0 + 0] = 0, // KO 5f08c3bdfSopenharmony_ci [0 + __builtin_choose_expr(0, 0, 0)] = 0, // OK 6f08c3bdfSopenharmony_ci [0 + __builtin_choose_expr(0, 0., 0)] = 0, // OK 7f08c3bdfSopenharmony_ci [0 + __builtin_choose_expr(0, 0, 0.)] = 0, // KO 8f08c3bdfSopenharmony_ci [0 < 0] = 0, // OK 9f08c3bdfSopenharmony_ci [0 < 0.] = 0, // KO 10f08c3bdfSopenharmony_ci [0 < __builtin_choose_expr(0, 0, 0)] = 0, // OK 11f08c3bdfSopenharmony_ci [0 < __builtin_choose_expr(0, 0., 0)] = 0, // OK 12f08c3bdfSopenharmony_ci [0 < __builtin_choose_expr(0, 0, 0.)] = 0, // KO 13f08c3bdfSopenharmony_ci [0 && 0] = 0, // OK 14f08c3bdfSopenharmony_ci [0 && 0.] = 0, // KO 15f08c3bdfSopenharmony_ci [0 && __builtin_choose_expr(0, 0, 0)] = 0, // OK 16f08c3bdfSopenharmony_ci [0 && __builtin_choose_expr(0, 0., 0)] = 0, // OK 17f08c3bdfSopenharmony_ci [0 && __builtin_choose_expr(0, 0, 0.)] = 0, // KO 18f08c3bdfSopenharmony_ci [0 + __builtin_types_compatible_p(int, float)] = 0, // OK 19f08c3bdfSopenharmony_ci}; 20f08c3bdfSopenharmony_ci 21f08c3bdfSopenharmony_ci/* 22f08c3bdfSopenharmony_ci * check-name: constexprness in binops and alike 23f08c3bdfSopenharmony_ci * 24f08c3bdfSopenharmony_ci * check-error-start 25f08c3bdfSopenharmony_ciconstexpr-binop.c:3:12: error: bad constant expression 26f08c3bdfSopenharmony_ciconstexpr-binop.c:4:19: error: bad integer constant expression 27f08c3bdfSopenharmony_ciconstexpr-binop.c:7:12: error: bad constant expression 28f08c3bdfSopenharmony_ciconstexpr-binop.c:9:12: error: bad integer constant expression 29f08c3bdfSopenharmony_ciconstexpr-binop.c:12:12: error: bad integer constant expression 30f08c3bdfSopenharmony_ciconstexpr-binop.c:14:12: error: bad integer constant expression 31f08c3bdfSopenharmony_ciconstexpr-binop.c:17:12: error: bad integer constant expression 32f08c3bdfSopenharmony_ci * check-error-end 33f08c3bdfSopenharmony_ci */ 34