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