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).
21 lines
585 B
Plaintext
21 lines
585 B
Plaintext
//ww:run-exit 54
|
|
package main;
|
|
type inner = struct { x: i64, y: i64 };
|
|
type big = struct { a: i64, ib: inner };
|
|
type t = struct { pc: size, bg: big };
|
|
fn setbg(ts: *[]t, i: size) void = {
|
|
(*ts)[i].bg = big { a = 1, ib = inner { x = 2, y = 3 } };
|
|
};
|
|
export fn main() i32 = {
|
|
let z: big = big { a = 0, ib = inner { x = 0, y = 0 } };
|
|
let ts: []t = [];
|
|
append(ts, t { pc = 7, bg = z });
|
|
setbg(&ts, 0);
|
|
let bp: *u8 = ts.ptr: *u8;
|
|
if (bp[8] != 1u8) { return 1; };
|
|
if (bp[16] != 2u8) { return 2; };
|
|
if (bp[24] != 3u8) { return 3; };
|
|
if (ts[0].pc != 7) { return 4; };
|
|
return 54;
|
|
};
|