Files
ww/test/lang/variant_chain_b95_runonly_test.ww
Hojun-Cho 83f5956df2 test: banner purge + WHY-only comment sweep (rule 8)
Every section banner dies (103 -> 0) across test/lang, the observer
suites, the C carriers, and the five comment-heavy corpus fixtures;
banner provenance (#N cites, carrier numbers, repair-cluster labels)
folded into headers or adjacent WHY comments. Narration deleted; row
provenance, ref cites, divergence pins, and layout contracts kept
(fwd-ref decl-order guards and bootstrap-gate corpus rationale
restored where the sweep over-cut). Comment-only proven: all 3742
wwbuild workdir .s byte-identical before/after; test-commit and
test-byteid (161 lang + 1399 data, 0 pinned-divergent) green.
2026-08-08 21:40:23 +09:00

39 lines
1.0 KiB
Plaintext

// The two #95 CALL-source chain rows whose mk()
// frame carries the pre-existing #81 uninit-local zero-fill asm divergence: the
// `is` result is cs==ww runtime-correct, but the surrounding frame byte-diverges
// cs≠ww (probed at HEAD: real, both standalone and @test forms). So these migrate
// VALUE-ONLY (_runonly, byte-id-EXCLUDED) per the divergence carve; the byte-id
// net is waived pending #81. Migrated from test/wcc/944_variant_chain_b95_run.c
// (K_RUN_NOID rows, #5-C5).
package variant_chain_b95_runonly_test;
type cc1_base = struct { a: int, b: int };
type cc1_al0 = cc1_base;
type cc2_base = struct { a: int, b: int };
type cc2_al0 = cc2_base;
type cc2_ali = cc2_al0;
fn cc1_mk() cc1_base = {
let s: cc1_base;
s.a = 4; s.b = 9;
return s;
};
fn cc2_mk() cc2_base = {
let s: cc2_base;
s.a = 4; s.b = 9;
return s;
};
@test fn chain_call_bound81() void = {
let v: (void | cc1_al0) = cc1_mk();
assert(v is cc1_al0);
};
@test fn chain_call2_bound81() void = {
let v: (void | cc2_ali) = cc2_mk();
assert(v is cc2_ali);
};