test: migrate Fam4 static-init/DATA-emit value tests to @test (#30)
Continues the test-arch tower past Fam8-13. 11 module-level static-init / DATA-emit value drivers move from test/wcc/*_run.c into @test row- tables under test/lang/; every classification empirically re-probed at HEAD (refuting two stale worklist tags). - value rows -> test/lang/*_test.ww (11 files) - reject rows -> runww //ww:error carriers (3, dual-stage non-vacuous; 947 const-divzero confirmed a both-stage compile-reject, not run-exit) - 840_zeroinit, 944_array_zeroinit, 989_arrlit_tail_zero kept as byte-id .c pins (zero-over-dirtied-frame / DATAW-length is byte-id-blind to a runtime @test; #263), mutation-gated - repoint two stale comment refs to deleted test names (719, 989_structlocal_frame) Migrated static-init @test ride the cs==ww T2 byte-id gate, preserving DATA-emit byte-id. 2D global-struct array-field read (#137/#150) confirmed cs==ww + correct at HEAD. Coverage parity verified row-by-row; two-round reviewed. Floor ratchet follows.
This commit is contained in:
7
test/wcc/data/arr_nested_ellipsis_reject/case.ww
Normal file
7
test/wcc/data/arr_nested_ellipsis_reject/case.ww
Normal file
@@ -0,0 +1,7 @@
|
||||
//ww:error "repeat with nested-array elements"
|
||||
// #156/rule-7 carrier: a `...` repeat marker with a nested-array element must
|
||||
// REJECT on both stages (no consumer needs it; powers_of_ten is fully
|
||||
// enumerated). From test/wcc/919_array_static_init_run.c nested_ellipsis_reject.
|
||||
package main;
|
||||
let A: [4][2]u64 = [[1u64, 2u64]...];
|
||||
export fn main() i32 = { return 0; };
|
||||
8
test/wcc/data/const_divzero_reject/case.ww
Normal file
8
test/wcc/data/const_divzero_reject/case.ww
Normal file
@@ -0,0 +1,8 @@
|
||||
//ww:error "division by zero"
|
||||
// #133/rule-7 carrier: a div-by-zero const-expr module-global init stays a
|
||||
// COMPILE error in BOTH stages, NOT silently zeroed (the eval_def_const error
|
||||
// path survives the let-hook). From test/wcc/947_inferred_scalar_global_run.c
|
||||
// const_divzero.
|
||||
package main;
|
||||
let s = 7 / 0;
|
||||
export fn main() i32 = { return s: i32; };
|
||||
8
test/wcc/data/slice_of_str_reject/case.ww
Normal file
8
test/wcc/data/slice_of_str_reject/case.ww
Normal file
@@ -0,0 +1,8 @@
|
||||
//ww:error "slice-of-{str,slice,tagged}"
|
||||
// #117/rule-7 carrier: a non-tuple aggregate element (a bare []str) in a
|
||||
// const-slice static-init stays a LOUD reject in BOTH stages — #117 is narrow
|
||||
// to the (str,*fn) tuple form. From test/wcc/946_const_slice_aggregate_run.c
|
||||
// loud_slice_of_str.
|
||||
package main;
|
||||
const xs: []str = ["a", "b"];
|
||||
export fn main() i32 = { return len(xs): i32; };
|
||||
Reference in New Issue
Block a user