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).
24 lines
734 B
Plaintext
24 lines
734 B
Plaintext
//ww:run-exit 69
|
|
package main;
|
|
type capture = struct { content: str, start: size };
|
|
type thread = struct { pc: size, captures: []capture,
|
|
rep_counters: []size };
|
|
fn delete_thread(i: size, threads: *[]thread) void = {
|
|
free((*threads)[i].captures);
|
|
free((*threads)[i].rep_counters);
|
|
delete((*threads)[i]);
|
|
};
|
|
export fn main() i32 = {
|
|
let z: []capture;
|
|
let zr: []size;
|
|
let xs: []thread = [];
|
|
append(xs, thread { pc = 1, captures = z, rep_counters = zr });
|
|
append(xs, thread { pc = 2, captures = z, rep_counters = zr });
|
|
append(xs, thread { pc = 3, captures = z, rep_counters = zr });
|
|
delete_thread(1, &xs);
|
|
if (len(xs) != 2) { return 1; };
|
|
if (xs[0].pc != 1) { return 2; };
|
|
if (xs[1].pc != 3) { return 3; };
|
|
return 69;
|
|
};
|