1*c85f09ccSJohn Levon #define __is_constexpr(x) \
2*c85f09ccSJohn Levon         (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
3*c85f09ccSJohn Levon 
test(int x)4*c85f09ccSJohn Levon static void test(int x) {
5*c85f09ccSJohn Levon 	static int b[] = {
6*c85f09ccSJohn Levon 		[__builtin_choose_expr(__is_constexpr(1 << 1), 1, x)] = 0,
7*c85f09ccSJohn Levon 	};
8*c85f09ccSJohn Levon }
9*c85f09ccSJohn Levon 
10*c85f09ccSJohn Levon /*
11*c85f09ccSJohn Levon  * check-name: constexpr-shift
12*c85f09ccSJohn Levon  */
13