aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/sizeof-bool.c
blob: 9f21d1c65e3705425f1a121032d89bcfce53649a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
static int a(void)
{
	return sizeof(_Bool);
}
/*
 * check-name: sizeof(_Bool) is valid
 * check-description: sizeof(_Bool) was rejected because _Bool is not an even
 * number of bytes
 * check-command: sparse -Wsizeof-bool $file
 * check-error-start
sizeof-bool.c:3:16: warning: expression using sizeof _Bool
 * check-error-end
 */