Migrate the DECLS of the 7 identity-#foreign feature tests to extern/export
(1205-global/-helper, 1207, 1218-cvariadic, 1219, 1306, 1318): fn/global markers →
extern, the 2 objc import classes (1306/1318) → postfix '#objc_class("X") extern {'.
Behavior-preserving (A→B gate + existing extern twins guarantee identical output);
empty snapshot diff, corpus-validated. Comment-only #foreign in these files is left
for the Phase 9.3 doc/comment purge (comments aren't parsed → not cutover-critical).
Suite green (647 corpus / 444 unit, 0 failed).
14 lines
517 B
Plaintext
14 lines
517 B
Plaintext
// Companion module for examples/94-foreign-global.sx (PLAN-FFI 0.10).
|
|
// Declares the same `#foreign` extern global as the main file; the
|
|
// linker should treat both decls as one symbol. We deliberately don't
|
|
// READ `@__stdinp` from inside a helper fn body — that path is busted
|
|
// today (see examples/issue-0037.sx) — we just expose a trivial fn so
|
|
// this file participates in the link and the cross-file decl
|
|
// coexistence is exercised.
|
|
|
|
__stdinp : *void extern;
|
|
|
|
stdinp_addr_present :: () -> i32 {
|
|
1
|
|
}
|