kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

6_2_5_03_block_static_incomplete_array.c (316B)


      1 /* Block-scope `static T name[] = { ... }` must complete the incomplete
      2  * array length from the initializer count, the same as the file-scope
      3  * path. Regression: B6 patched only the file-scope walker. */
      4 int test_main(void) {
      5   static const char* m[] = {"a", "b", "c"};
      6   return (int)(sizeof(m) / sizeof(m[0]));
      7 }