Move examples/*.sx and their expected/ snapshots into per-category subfolders (examples/<category>/...). Folder = leading filename token, with ffi-objc/ffi-jni kept whole; filenames are unchanged. The corpus runner and LSP sweep now discover each category's expected/ dir, while issues/ stays flat. Example 1058's repo-root-relative companion import is made file-relative. Path strings embedded in 164 snapshots were regenerated (path-only changes). Test-layout docs in CLAUDE.md updated.
14 lines
520 B
Plaintext
14 lines
520 B
Plaintext
// Companion module for examples/1205-ffi-extern-global.sx (PLAN-FFI 0.10).
|
|
// Declares the same `extern` 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
|
|
}
|