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).
19 lines
648 B
Plaintext
19 lines
648 B
Plaintext
//ww:run-exit 42
|
|
package main;
|
|
type t = struct { a: u8, b: u16, c: u32 };
|
|
fn seta(ts: *[]t, i: size) void = { (*ts)[i].a = 200u8; };
|
|
fn setb(ts: *[]t, i: size) void = { (*ts)[i].b = 60000u16; };
|
|
fn setc(ts: *[]t, i: size) void = { (*ts)[i].c = 70000u32; };
|
|
export fn main() i32 = {
|
|
let ts: []t = [];
|
|
append(ts, t { a = 5u8, b = 6u16, c = 7u32 });
|
|
append(ts, t { a = 5u8, b = 6u16, c = 7u32 });
|
|
seta(&ts, 1); setb(&ts, 1); setc(&ts, 1);
|
|
if (ts[1].a != 200u8) { return 1; };
|
|
if (ts[1].b != 60000u16) { return 2; };
|
|
if (ts[1].c != 70000u32) { return 3; };
|
|
if (ts[0].a != 5u8) { return 4; };
|
|
if (ts[0].c != 7u32) { return 5; };
|
|
return 42;
|
|
};
|