Files
ww/test/wcc/data/r806ap_self_append_realloc/case.ww
Hojun-Cho f6628b985e test: migrate 24 residual carriers into the fixture corpus
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).
2026-08-08 01:29:15 +09:00

21 lines
537 B
Plaintext

//ww:run-exit 78
package main;
type box = struct { pc: size, a: i64, b: i64, x: i64 };
export fn main() i32 = {
let lo: i64 = 111;
let bs: []box = [];
let hi: i64 = 222;
append(bs, box { pc = 9, a = 100, b = 200, x = 300 });
let i: i32 = 0;
for (i < 33) {
append(bs, bs[i]);
i += 1;
};
if (len(bs) != 34) { return 1; };
if (bs[0].pc != 9 || bs[33].pc != 9) { return 2; };
if (bs[17].a != 100 || bs[33].b != 200) { return 3; };
if (bs[33].x != 300) { return 4; };
if (lo != 111 || hi != 222) { return 5; };
return 78;
};