| 1 | module 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 *) |
| 4 | import Heap, Mem, Rt; |
| 5 | |
| 6 | proc main*; |
| 7 | begin |
| 8 | _ := Mem.alloc(Heap.sure, 7FFFFFFFFFFFFFFFH - 4, 8); |
| 9 | Rt.stop("HeapSure: not stopped"); |
| 10 | end; |
| 11 | |
| 12 | end HeapSure. |