// Repro for issue 0030 (OPEN feature request): cross-file sx `extern` globals. // Want: `extern G : T;` declares a reference to a global defined in another sx // file (resolved at link time), mirroring `#foreign` functions. Today this is a // parse error — the form doesn't exist. Distinct from `name : T #foreign;` // (an external C data symbol; see examples/1205-ffi-foreign-global.sx). // // Expected (once implemented): parses; `g_x` resolves to a global defined // elsewhere. Actual: error "expected '::', ':=', or ':' after identifier". #import "modules/std.sx"; extern g_x : *void; main :: () -> s32 { 0; }