//ww:run-exit 0 // Run leg of the retired 929_tagged_memarg_run.c row mem56_subset_remap. package main; type t_lit = rune; type t_any = void; type t_rep = struct { id: size, origin: size, m0: size, m1: size, m2: size, m3: size }; type t_u = (t_lit | t_any | t_rep); type t_sub = (t_lit | t_any); fn probe(a: t_u) i32 = { match (a) { case let l: t_lit => { if (l == 'x') { return 1; }; return 91; }; case t_any => { return 2; }; case let r: t_rep => { if (r.m3 != 1234) { return 92; }; if (r.m2 != 12) { return 93; }; if (r.id != 7) { return 94; }; return 3; }; }; return 99; }; export fn main() i32 = { let s: t_sub = ('x': t_lit); if (probe(s) != 1) { return 1; }; let s2: t_sub = (void: t_any); if (probe(s2) != 2) { return 2; }; return 0; };