//ww:error "runtime initializer unsupported (alloc/call; rule 7)" // Module-scope alloc initializer: no DATAW slot exists for a // runtime-computed global, so pre-reject every reference died at // LINK time ("undefined reference to 'main.gp'") — the checker now // rejects at the declaration on both frontends (Hare model: // ref/harec/src/check.c:4360 rejects non-compile-time-evaluable // global initializers; ww has no @init path). package main; type box = struct { s: str, n: int }; let gp = alloc(box { s = "hi", n = 1 })!; export fn main() i32 = { if (gp.s.len != 2) { return 1; }; return 0; };