test: retire 13 byteid carriers into the corpus blanket
Ten of the thirteen were already fully twinned — their runtime rows migrated in earlier waves (r56_def_*, r79_*, r78_*, r926_*, r989_m1union_*) and the carriers survived only for a cstage-vs-wwstage byte-compare the blanket test-data-byteid comparator owns once the source is a corpus fixture. The other three needed their remaining inline sources added first: r756_* (4, alias-chain unwrap), r844_bid_src (size(u64) untyped-int compare), r989_structframe_* (3, struct-local frame layout). Every new fixture was verified both-stage: compile exit 0 twice, .s byte-identical, runtime exit as pinned. The five ww_ww-driver-leg carriers among them (785/786/789/790/ m1union) follow the 815/940/951 precedent: content identity owned by their corpus twins, driver-leg identity owned by 989_lib_byteid's sweep. Byte/artifact partition 24 -> 11; carriers 147 -> 134; corpus pin 1495/2990; the stale 915 sweep figure in the docs corrected to the true 1,157 non-error count.
This commit is contained in:
16
test/wcc/data/r756_r1_i32_struct/case.ww
Normal file
16
test/wcc/data/r756_r1_i32_struct/case.ww
Normal file
@@ -0,0 +1,16 @@
|
||||
//ww:run
|
||||
package main;
|
||||
type r1 = struct {
|
||||
a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32,
|
||||
h: i32, i: i32, j: i32, k: i32, l: i32, m: i32, p: i32,
|
||||
};
|
||||
fn make_r1() r1 = {
|
||||
let b: r1;
|
||||
b.p = 99i32;
|
||||
return b;
|
||||
};
|
||||
export fn main() i32 = {
|
||||
let s: r1 = make_r1();
|
||||
if (s.p != 99i32) { return 11; };
|
||||
return 0;
|
||||
};
|
||||
14
test/wcc/data/r756_r2_slice_single/case.ww
Normal file
14
test/wcc/data/r756_r2_slice_single/case.ww
Normal file
@@ -0,0 +1,14 @@
|
||||
//ww:run
|
||||
package main;
|
||||
type r2_struct = struct { in: []u8, delim: []u8, p: i64 };
|
||||
type r2_alias = r2_struct;
|
||||
fn make_r2() r2_alias = {
|
||||
let b: r2_struct;
|
||||
b.p = 99i64;
|
||||
return b;
|
||||
};
|
||||
export fn main() i32 = {
|
||||
let s: r2_alias = make_r2();
|
||||
if (s.p != 99i64) { return 12; };
|
||||
return 0;
|
||||
};
|
||||
13
test/wcc/data/r756_r3_slice_direct/case.ww
Normal file
13
test/wcc/data/r756_r3_slice_direct/case.ww
Normal file
@@ -0,0 +1,13 @@
|
||||
//ww:run
|
||||
package main;
|
||||
type r3 = struct { in: []u8, delim: []u8, p: i64 };
|
||||
fn make_r3() r3 = {
|
||||
let b: r3;
|
||||
b.p = 99i64;
|
||||
return b;
|
||||
};
|
||||
export fn main() i32 = {
|
||||
let s: r3 = make_r3();
|
||||
if (s.p != 99i64) { return 13; };
|
||||
return 0;
|
||||
};
|
||||
18
test/wcc/data/r756_r4_i32_double/case.ww
Normal file
18
test/wcc/data/r756_r4_i32_double/case.ww
Normal file
@@ -0,0 +1,18 @@
|
||||
//ww:run
|
||||
package main;
|
||||
type r4_struct = struct {
|
||||
a: i32, b: i32, c: i32, d: i32, e: i32, f: i32, g: i32,
|
||||
h: i32, i: i32, j: i32, k: i32, l: i32, m: i32, p: i32,
|
||||
};
|
||||
type r4_base = r4_struct;
|
||||
type r4_alias = r4_base;
|
||||
fn make_r4() r4_alias = {
|
||||
let b: r4_alias;
|
||||
b.p = 99i32;
|
||||
return b;
|
||||
};
|
||||
export fn main() i32 = {
|
||||
let s: r4_alias = make_r4();
|
||||
if (s.p != 99i32) { return 14; };
|
||||
return 0;
|
||||
};
|
||||
7
test/wcc/data/r844_bid_src/case.ww
Normal file
7
test/wcc/data/r844_bid_src/case.ww
Normal file
@@ -0,0 +1,7 @@
|
||||
//ww:run-exit 1
|
||||
package main;
|
||||
export fn main() i32 = {
|
||||
let m: size = 16;
|
||||
if (m >= size(u64)) { return 1; };
|
||||
return 0;
|
||||
};
|
||||
9
test/wcc/data/r989_structframe_flat_ctl/case.ww
Normal file
9
test/wcc/data/r989_structframe_flat_ctl/case.ww
Normal file
@@ -0,0 +1,9 @@
|
||||
//ww:run
|
||||
package main;
|
||||
type flat = struct { a: u8, b: i64 };
|
||||
export fn main() int = {
|
||||
let o: flat = flat { a = 9, b = 0x33333333i64 };
|
||||
if (o.a: int != 9) { return 1; };
|
||||
if (o.b != 0x33333333i64) { return 2; };
|
||||
return 0;
|
||||
};
|
||||
12
test/wcc/data/r989_structframe_nested3/case.ww
Normal file
12
test/wcc/data/r989_structframe_nested3/case.ww
Normal file
@@ -0,0 +1,12 @@
|
||||
//ww:run
|
||||
package main;
|
||||
type inner = struct { x: u8, y: u8 };
|
||||
type outer = struct { a: u8, p: inner, z: i64 };
|
||||
export fn main() int = {
|
||||
let o: outer = outer { a = 1, p = inner { x = 2, y = 3 }, z = 0x44444444i64 };
|
||||
if (o.a: int != 1) { return 1; };
|
||||
if (o.p.x: int != 2) { return 2; };
|
||||
if (o.p.y: int != 3) { return 3; };
|
||||
if (o.z != 0x44444444i64) { return 4; };
|
||||
return 0;
|
||||
};
|
||||
10
test/wcc/data/r989_structframe_tail_u32/case.ww
Normal file
10
test/wcc/data/r989_structframe_tail_u32/case.ww
Normal file
@@ -0,0 +1,10 @@
|
||||
//ww:run
|
||||
package main;
|
||||
type inner = struct { x: u8, y: u8 };
|
||||
type outt = struct { a: u8, p: inner, w: u32 };
|
||||
export fn main() int = {
|
||||
let o: outt = outt { a = 1, p = inner { x = 2, y = 3 }, w = 0x1234u32 };
|
||||
if (o.p.y: int != 3) { return 3; };
|
||||
if (o.w != 0x1234u32) { return 5; };
|
||||
return 0;
|
||||
};
|
||||
Reference in New Issue
Block a user