//ww:run-exit 69 package main; type box = struct { pc: size, matched: bool }; fn add(p: *[]box, v: size) void = { let b: box = box { pc = v, matched = true }; append(*p, b); }; export fn main() i32 = { let bs: []box = []; add(&bs, 7); if (len(bs) != 1) { return 1; }; if (bs[0].pc != 7) { return 2; }; if (!bs[0].matched) { return 3; }; return 69; };