//ww:run-exit 74 package main; type capture = struct { content: str, start: size, start_bytesize: size, end: size, end_bytesize: size }; type thread = struct { pc: size, root_capture: capture, matched: bool }; export fn main() i32 = { let threads: []thread = []; append(threads, thread { pc = 7, ... }); append(threads, thread { pc = 1, root_capture = capture { content = "bcd", start = 1, start_bytesize = 2, end = 4, end_bytesize = 5 }, ... }); let res: []capture = []; let i: size = 1; append(res, threads[i].root_capture); if (len(res) != 1) { return 1; }; if (res[0].start != 1) { return 2; }; if (res[0].start_bytesize != 2) { return 3; }; if (res[0].end != 4) { return 4; }; if (res[0].end_bytesize != 5) { return 5; }; if (res[0].content.len != 3) { return 6; }; if (threads[1].root_capture.end != 4) { return 7; }; return 74; };