//ww:run-exit 64 package main; type capture = struct { content: str, start: size, end: size }; type t = struct { pc: size, cap: capture }; fn pcof(p: *t) size = { return (*p).pc; }; export fn main() i32 = { let x: t = t { pc = 9, cap = capture { content = "hi", start = 1, end = 2 } }; if (x.cap.start != 1) { return 1; }; if (x.cap.content.len != 2) { return 2; }; if (pcof(&x) != 9) { return 3; }; if ("abc".len != 3) { return 4; }; return 64; };