db/fixup_kernel.sh: fix clear_user() handling
[smatch.git] / validation / constexpr-shift.c
blobdf01b74e8dc1c60bcb28b09431e0bbea01678807
1 #define __is_constexpr(x) \
2 (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
4 static void test(int x) {
5 static int b[] = {
6 [__builtin_choose_expr(__is_constexpr(1 << 1), 1, x)] = 0,
7 };
11 * check-name: constexpr-shift