6_7_6_18_file_scope_array_bound_paren.c (502B)
1 /* ยง6.7.6.2 -- file-scope array bound that is a parenthesized integer 2 * constant expression. The parser must fold `(N)+M` at parse time the 3 * same way it folds `N+M` for the [N+M] form. Currently this path 4 * panics from the codegen layer ("KitCg: regalloc - no spillable 5 * victim"), as if the constexpr were being lowered to runtime IR for 6 * a file-scope declaration that has no enclosing function. */ 7 static int marks[(2 + 5)] = {0, 0, 0, 0, 0, 0, 42}; 8 9 int test_main(void) { return marks[6]; }