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