Audit-driven migrate-and-retire wave (one read-only auditor per carrier batch, verdicts row-checked through the full corpus gate): every retired carrier's assertions are now owned by declarative fixtures or an existing owner. 238 new fixtures land (corpus 1,239 -> 1,477; cells 2,954), covering enum/str/slice/tagged array elements, inferred-length arrays, global slice/str zero-init and literals, global array/pointer field reads and stores, struct-literal slice fields, struct returns, float arithmetic, size/int limits, sort and log-vstream behavior, place-addressed stores, and append places. Rejection rows STRENGTHEN the old nonzero-exit checks to required diagnostic fragments; all byte-id claims fold into the blanket test-data-byteid sweep (now 1,142 compared, 0 pinned-divergent). Four carriers were fully redundant with existing fixtures/lang tests (749, 722, 765, and 771's byteid rows) and retire without new rows. Native carriers 171 -> 147 (residual 135 -> 111).
26 lines
692 B
Plaintext
26 lines
692 B
Plaintext
//ww:run-exit 82
|
|
package main;
|
|
type holder = struct { tag: i64, ss: []str, ns: []i32 };
|
|
export fn main() i32 = {
|
|
let h = holder { tag = 1, ss = [], ns = [] };
|
|
append(h.ss, "ab");
|
|
append(h.ss, "cde");
|
|
append(h.ns, 7: i32);
|
|
let hs: []holder = [];
|
|
append(hs, h);
|
|
let ss: []str = [];
|
|
append(ss, hs[0].ss...);
|
|
if (len(ss) != 2) { return 1; };
|
|
if (len(ss[0]) != 2 || ss[0][1] != 'b') { return 2; };
|
|
if (len(ss[1]) != 3 || ss[1][2] != 'e') { return 3; };
|
|
let ns: []i32 = [];
|
|
append(ns, hs[0].ns...);
|
|
if (len(ns) != 1 || ns[0] != 7) { return 4; };
|
|
let empty: []i64 = [];
|
|
let ep = ∅
|
|
let acc: []i64 = [];
|
|
append(acc, (*ep)...);
|
|
if (len(acc) != 0) { return 5; };
|
|
return 82;
|
|
};
|