aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/cond_expr.c
blob: d5d9e6ff53688962c52beb827b2f3744e66c0f70 (plain)
1
2
3
4
5
6
7
8
9
10
11
/*
 *  Bug in original tree: (real_v ? : x) had been treated as equivalent of
 *  (real_v == 0 ? real_v == 0 : x), which gives the wrong type (and no
 *  warning from the testcase below).
 */
static int x;
static double y;
int a(void)
{
	return ~(y ? : x);	/* should warn */
}