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).
This commit is contained in:
28
test/wcc/data/r805_c3_alias_arr_viaptr/case.ww
Normal file
28
test/wcc/data/r805_c3_alias_arr_viaptr/case.ww
Normal file
@@ -0,0 +1,28 @@
|
||||
//ww:run-exit 66
|
||||
package main;
|
||||
type wide = struct { b: u8, q: i64, xs: []size };
|
||||
type warr = [2]wide;
|
||||
type pw = *wide;
|
||||
type plist = []pw;
|
||||
fn mkw(k: i64) wide = {
|
||||
let xs: []size = [];
|
||||
let x0: size = (10 + k): size;
|
||||
append(xs, x0);
|
||||
return wide { b = (k + 1): u8, q = k, xs = xs };
|
||||
};
|
||||
export fn main() i32 = {
|
||||
let w3: wide = mkw(3);
|
||||
let w4: wide = mkw(4);
|
||||
let a0: [2]wide = [w3, w4];
|
||||
let a: warr = a0;
|
||||
if (a[0].q != 3i64) { return 1; };
|
||||
if (a[1].b != 5u8) { return 2; };
|
||||
let w5: wide = mkw(5);
|
||||
let ps0: []pw = [];
|
||||
append(ps0, &w5);
|
||||
let ps: plist = ps0;
|
||||
if (ps[0].q != 5i64) { return 3; };
|
||||
if (ps[0].b != 6u8) { return 4; };
|
||||
if (ps[0].xs[0] != (15: size)) { return 5; };
|
||||
return 66;
|
||||
};
|
||||
Reference in New Issue
Block a user