Files
ww/test/wcc/data/r812_lit_field_from_ident/case.ww
Hojun-Cho d456263f7e test/wcc/data: grow the declarative compiler corpus to 1,224 fixtures
The r-prefixed waves absorb the runtime, reject, and byte-compare rows
of the migrated native carriers; each fixture is one directory with one
case.ww and a //ww:error, //ww:compile, //ww:run, or //ww:run-exit
directive covering both frontends.
2026-08-07 23:21:04 +09:00

6 lines
330 B
Plaintext

//ww:run-exit 21
package main;
type rep = struct { id: size, x: size, y: size };
type outer = struct { tag: size, r: rep };
export fn main() i32 = { let r: rep = rep { id = 6: size, x = 7: size, y = 8: size }; let o: outer = outer { tag = 4: size, r = r }; if (o.tag != 4) { return 99; }; return (o.r.id + o.r.x + o.r.y): i32; };