// expect error: zy: index 11 out of range (length 11) // spec 8.4 and 4.11: the exact length holds under memdebug too (11 words, a 16-word block) memdebug on; include rt; void pn(int x) { rt.put_n(x); rt.put_c(10); } int at(word* p, int i) { p[i] = 7; return p[i]; } fn main() { word* p = rt.new(11); pn(at(p, 10)); pn(at(p, 11)); return 0; } // zc0: skip