Files
ww/test/wcc/data/r732_def_xmod_fold/case.ww
Hojun-Cho be852d51d9 test: port 732_def_const_fold residue to corpus fixtures
732_def_const_fold.c -> r732_def_xmod_fold (run-exit 42; stronger than
  the carrier's DATA-row grep — links AND reads the folded cross-module
  value), r732_def_xmod_cycle (error 'def value: reference chain too
  deep', upgrading the needle-less exit!=0 check).

The five same-module exec rows and both same-module fail-loud rows were
already owned by the r732_def_* fixtures; their cs-vs-ww byte identity
rides test-data-byteid, which now also covers the xmod fold row. The
timeout-124 hang distinction devolves to the wwfixture harness timeout.
2026-08-08 14:33:23 +09:00

13 lines
342 B
Plaintext

//ww:run-exit 42
// migrated from test/wcc/732_def_const_fold.c: cross-module def-RHS fold (`def K = a.J + 1`) must emit the folded DATA row; run-exit links AND reads the value.
package a;
export def J: i32 = 41;
package b;
import a;
def K: i32 = a.J + 1;
export fn main() i32 = {
let k: i32 = K;
if (k == 42) { return 42; };
return 1;
};