aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/cond_expr.c
blob: afd359523ecc3ade2cd25c597beee2e424711b82 (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).
 */
int x;
double y;
int a(void)
{
	return ~(y ? : x);	/* should warn */
}