module BufCut; (* Buf.cut past what the buffer holds says so, with the calls under way, and stops the program with status 2 *) import Buf, Heap; proc main*; var b: Buf.Buf; begin Buf.init(b, Heap.heap); Buf.str(b, "hello"); Buf.cut(b, 6); end; end BufCut.