raz / test / run / HeapSure.raz

12 lines · 306 B · raw · history · last change 302c3acd

1module HeapSure;
2(* Heap.sure stops the program, with the calls under way, when the heap
3 has no room: here for a size it refuses on any machine *)
4import Heap, Mem, Rt;
5
6proc main*;
7begin
8 _ := Mem.alloc(Heap.sure, 7FFFFFFFFFFFFFFFH - 4, 8);
9 Rt.stop("HeapSure: not stopped");
10end;
11
12end HeapSure.