raz / test / run / BufCut.raz

14 lines · 273 B · raw · history · last change 3fee2db6

1module BufCut;
2(* Buf.cut past what the buffer holds says so, with the calls under
3 way, and stops the program with status 2 *)
4import Buf, Heap;
5
6proc main*;
7var b: Buf.Buf;
8begin
9 Buf.init(b, Heap.heap);
10 Buf.str(b, "hello");
11 Buf.cut(b, 6);
12end;
13
14end BufCut.