From ad9e48b34b8b83c9eb196c6608de145c7960854c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 23 Aug 2014 10:17:33 -0700 Subject: 73 --- new.arc.t | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 new.arc.t (limited to 'new.arc.t') diff --git a/new.arc.t b/new.arc.t deleted file mode 100644 index 3a5d0acf..00000000 --- a/new.arc.t +++ /dev/null @@ -1,23 +0,0 @@ -(load "new.arc") - -(reset) -;? (prn memory*) -(if (~iso memory*.Root_custodian Allocator_start) - (prn "F - allocator initialized")) - -(reset) -(add-fns - '((main - ((x integer-address) <- new) - ((x integer-address deref) <- literal 34)))) -(run function*!main) -;? (prn memory*) -(if (~iso memory*.Root_custodian (+ Allocator_start 1)) - (prn "F - 'new' increments allocator pointer")) -(if (~iso memory*.Allocator_start 34) - (prn "F - 'new' returns old location")) - -; other tests to express: -; no other function can increment the pointer -; no later clause can increment the pointer after this base clause -; multiple threads/routines can't call the allocator at once -- cgit 1.4.1-2-gfad0