aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/eval/not-cast-bool.c
blob: acd8bbf293db42f4aed34a39e3a89eef7ddb7561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
static _Bool foo(void)
{
	unsigned char c = 1;
	_Bool b = ~c;
	return b;
}

/*
 * check-name: not-cast-bool
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-returns: 1
 */