//ww:run-exit 66 // migrated from test/wcc/797_xmod_struct_field_layout_collide_run.c: cgstructlitfilltn nested-recursion pin — struct-literal field store with a nested literal; single-dot readback helpers per the open wwstage chained-read gaps. package main; type deep = struct { d0: u64, d1: u64 }; type nst = struct { i0: u64, dp: deep }; type box = struct { tag: u64, ir: nst }; fn mkbox() box = { return box { tag = 0: u64, ir = nst { i0 = 0: u64, dp = deep { d0 = 0: u64, d1 = 0: u64 } } }; }; fn sumdeep(d: deep) u64 = { return d.d0 + d.d1; }; fn sumnst(n: nst) u64 = { return n.i0 + sumdeep(n.dp); }; fn main() i32 = { let s = mkbox(); s.ir = nst { i0 = 11: u64, dp = deep { d0 = 22: u64, d1 = 33: u64 } }; return sumnst(s.ir): i32; };