11f5207b7SJohn Levon static int a[] = { 21f5207b7SJohn Levon [(int)0] = 0, // OK 31f5207b7SJohn Levon [(int)(int)0] = 0, // OK 41f5207b7SJohn Levon [(int)0.] = 0, // OK 51f5207b7SJohn Levon [(int)(int)0.] = 0, // OK 61f5207b7SJohn Levon [(int)__builtin_choose_expr(0, 0, 0)] = 0, // OK 71f5207b7SJohn Levon [(int)__builtin_choose_expr(0, 0, 0.)] = 0, // OK 81f5207b7SJohn Levon 91f5207b7SJohn Levon [(int)(float)0] = 0, // KO 101f5207b7SJohn Levon [(int)(float)0.] = 0, // KO 111f5207b7SJohn Levon 121f5207b7SJohn Levon [(int)(void*)0] = 0, // KO 131f5207b7SJohn Levon [(int)(void*)0.] = 0, // KO 141f5207b7SJohn Levon 151f5207b7SJohn Levon }; 161f5207b7SJohn Levon /* 17*c85f09ccSJohn Levon * check-name: constexprness in casts 181f5207b7SJohn Levon * 191f5207b7SJohn Levon * check-error-start 201f5207b7SJohn Levon constexpr-cast.c:9:11: error: bad integer constant expression 211f5207b7SJohn Levon constexpr-cast.c:10:11: error: bad integer constant expression 221f5207b7SJohn Levon constexpr-cast.c:12:11: error: bad integer constant expression 231f5207b7SJohn Levon constexpr-cast.c:13:11: error: bad integer constant expression 241f5207b7SJohn Levon * check-error-end 251f5207b7SJohn Levon */ 26