db/fixup_kernel.sh: fix clear_user() handling
[smatch.git] / validation / choose_expr.c
blobb5d2b4e6fca70366943ffc1012fd444454304b2d
1 static int x = __builtin_choose_expr(0,(char *)0,(void)0);
2 static int y = __builtin_choose_expr(1,(char *)0,(void)0);
3 static char s[42];
4 static int z = 1/(sizeof(__builtin_choose_expr(1,s,0)) - 42);
6 /*
7 * check-name: choose expr builtin
8 * check-error-start
9 choose_expr.c:1:51: warning: incorrect type in initializer (different base types)
10 choose_expr.c:1:51: expected int static [toplevel] x
11 choose_expr.c:1:51: got void
12 choose_expr.c:2:41: warning: incorrect type in initializer (different base types)
13 choose_expr.c:2:41: expected int static [toplevel] y
14 choose_expr.c:2:41: got char *
15 choose_expr.c:4:17: warning: division by zero
16 * check-error-end