1static _Bool boolarray_d1[1];
2static _Bool boolarray_d8[8];
3static _Bool boolarray_i2[2] = {
4	0,
5	1,
6};
7static int nd1 = sizeof(boolarray_d1);
8static int nd8 = sizeof(boolarray_d8);
9static int ni2 = sizeof(boolarray_i2);
10
11
12static long longarray_u2[] = {
13	0,
14	1,
15};
16static int nl2 = sizeof(longarray_u2);
17
18/*
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)
23 */
24static _Bool boolarray_u8[] = {
25	0,
26	1,
27	0,
28	1,
29	0,
30	1,
31	0,
32	1,
33};
34
35/*
36 * Used to get "error: cannot size expression" for the sizeof.
37 */
38static _Bool boolarray_u2[] = {
39	0,
40	1,
41};
42static int nu2 = sizeof(boolarray_u2);
43
44/*
45 * check-name: sizeof(bool array)
46 * check-command: sparse -Wno-sizeof-bool $file
47 */
48