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.
19 lines
711 B
Plaintext
19 lines
711 B
Plaintext
// Unit-first JIT resolution (PLAN-C C2): a `#source` unit defining a
|
|
// symbol that ALSO lives in an OS image already loaded into the
|
|
// compiler process (libz, via libLLVM) still wins — the unit's dylib
|
|
// is a priority symbol-search target ahead of the process-wide
|
|
// fallback. The unit's zlibCompileFlags answers 0xDEADBEEF; the OS
|
|
// one answers real flag bits, so `true` proves the unit won.
|
|
// Regression (PLAN-C C0.3 xfail, flipped by C2.1).
|
|
#import "modules/std.sx";
|
|
|
|
zshadow :: #import c {
|
|
#include "1621-cimport-shadow-os-lib/shadow.h";
|
|
#source "1621-cimport-shadow-os-lib/shadow.c";
|
|
};
|
|
|
|
main :: () -> i32 {
|
|
print("from_unit: {}\n", zshadow.zlibCompileFlags() == 3735928559);
|
|
0
|
|
}
|