//ww:run-exit 0 // Run leg of the retired 926_tagged_sret_run.c row wide_lit_roundtrip. package main; type oops = !str; type nomem = !void; type wide = struct { xs: []u8, ys: []u8, n: i64 }; fn mk(b: []u8, n: i64) (wide | oops | nomem) = { return wide { xs = b, ys = b, n = n }; }; export fn main() i32 = { let buf: [4]u8 = [9u8, 8u8, 7u8, 6u8]; match (mk(buf[0:4], 42)) { case let w: wide => { if (w.n != 42) { return 1; }; if (w.xs.len != 4) { return 2; }; if (w.ys.len != 4) { return 3; }; if (w.xs[3] != 6u8) { return 4; }; }; case let e: oops => return 13; case nomem => return 14; }; return 0; };