xref: /illumos-gate/usr/src/tools/smatch/src/validation/constexpr-shift.c (revision 374858d291554c199353841e2900bc130463934a)
1 #define __is_constexpr(x) \
2         (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
3 
4 static void test(int x) {
5 	static int b[] = {
6 		[__builtin_choose_expr(__is_constexpr(1 << 1), 1, x)] = 0,
7 	};
8 }
9 
10 /*
11  * check-name: constexpr-shift
12  */
13