Files
ww/test/wcc/data/r805_read_widths_spine/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

20 lines
835 B
Plaintext

//ww:run-exit 61
package main;
type inner = struct { b: i8, ub: u8, w: i16, uw: u16, d: i32, ud: u32, f: f64, g: f32, arr: [3]u8 };
type box = struct { pad: size, it: inner };
export fn main() i32 = {
let bs: []box = [];
append(bs, box { pad = 1, it = inner { b = -5i8, ub = 200u8, w = -300i16, uw = 60000u16, d = -70000, ud = 4000000000u32, f = 1.5, g = 2.5f32, arr = [7u8, 8u8, 9u8] } });
let p: *[]box = &bs;
if ((*p)[0].it.b != -5i8) { return 1; };
if ((*p)[0].it.ub != 200u8) { return 2; };
if ((*p)[0].it.w != -300i16) { return 3; };
if ((*p)[0].it.uw != 60000u16) { return 4; };
if ((*p)[0].it.d != -70000) { return 5; };
if ((*p)[0].it.ud != 4000000000u32) { return 6; };
if ((*p)[0].it.f != 1.5) { return 7; };
if ((*p)[0].it.g != 2.5f32) { return 8; };
if ((*p)[0].it.arr[1] != 8u8) { return 9; };
return 61;
};