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.
16 lines
717 B
Plaintext
16 lines
717 B
Plaintext
// A `Vector` lane count that folds to a valid compile-time integer but exceeds a
|
|
// `u32` (`Vector(5_000_000_000, f32)`) is a hard error — a clean sx diagnostic
|
|
// with a non-zero exit, NOT a compiler panic.
|
|
//
|
|
// Regression (issue 0087 / F0.4 attempt 6): the lane folded to a valid i64 (5e9)
|
|
// and was then narrowed with an unchecked `@intCast` to u32, aborting the
|
|
// COMPILER with "integer does not fit in destination type". The lane now narrows
|
|
// through the single range-checked `program_index.foldDimU32`, which reports an
|
|
// out-of-u32-range lane as this diagnostic and halts the build.
|
|
#import "modules/std.sx";
|
|
|
|
main :: () {
|
|
v : Vector(5000000000, f32) = ---;
|
|
print("unreachable: {}\n", v.x);
|
|
}
|