implied: tweak some debug statements
[smatch.git] / validation / bool-array.c
blob6c4c872349231834d34f00463a60fbedba0340ee
1 static _Bool boolarray_d1[1];
2 static _Bool boolarray_d8[8];
3 static _Bool boolarray_i2[2] = {
4 0,
5 1,
6 };
7 static int nd1 = sizeof(boolarray_d1);
8 static int nd8 = sizeof(boolarray_d8);
9 static int ni2 = sizeof(boolarray_i2);
12 static long longarray_u2[] = {
16 static int nl2 = sizeof(longarray_u2);
19 * Used to get "warning: excessive elements in array initializer"
20 * for all elements but the first one.
21 * Note: only occurs if nbr of elements is a multiple of 8
22 * (if not, theer was another problem)
24 static _Bool boolarray_u8[] = {
36 * Used to get "error: cannot size expression" for the sizeof.
38 static _Bool boolarray_u2[] = {
42 static int nu2 = sizeof(boolarray_u2);
45 * check-name: sizeof(bool array)
46 * check-command: sparse -Wno-sizeof-bool $file