1 static int array[] = { 0, 1, 2, 3, };
2 _Static_assert(sizeof(array) == 4 * sizeof(int), "size of array");
3
4
5 typedef int table_t[];
6 static table_t tbl2 = {
7 0,
8 1,
9 };
10 _Static_assert(sizeof(tbl2) == 2 * sizeof(int), "size of tbl2");
11
12 static table_t tbl1 = {
13 0,
14 };
15 _Static_assert(sizeof(tbl1) == 1 * sizeof(int), "size of tbl1");
16
17 static table_t tbl3 = {
18 0,
19 1,
20 2,
21 };
22 _Static_assert(sizeof(tbl3) == 3 * sizeof(int), "size of tbl3");
23
24 /*
25 * check-name: array-implicit-size
26 */