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.
18 lines
988 B
Plaintext
18 lines
988 B
Plaintext
error: cannot take the address of constant 'N' — a scalar '::' constant has no storage (use a '=' variable or a local copy for mutable data)
|
|
--> examples/diagnostics/1177-diagnostics-addr-of-const-rejected.sx:14:11
|
|
|
|
|
14 | takes(@N); // module scalar const — no storage
|
|
| ^^
|
|
|
|
error: cannot take the address of constant 'x' — a scalar '::' constant has no storage (use a '=' variable or a local copy for mutable data)
|
|
--> examples/diagnostics/1177-diagnostics-addr-of-const-rejected.sx:16:11
|
|
|
|
|
16 | takes(@x); // local scalar const — no storage
|
|
| ^^
|
|
|
|
error: cannot take the address of constant 'N' — a scalar '::' constant has no storage (use a '=' variable or a local copy for mutable data)
|
|
--> examples/diagnostics/1177-diagnostics-addr-of-const-rejected.sx:17:49
|
|
|
|
|
17 | asm volatile { "mov %[c], #99", [c] "=r" -> @N }; // write-through to a const
|
|
| ^^
|