about summary refs log tree commit diff stats
path: root/mu.arc.t
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-10-12 10:27:23 -0700
committerKartik K. Agaram <vc@akkartik.com>2014-10-12 10:27:23 -0700
commit6d24d47bd755b4a320ca8d7a84698b500024dc97 (patch)
treeab282573b7a93f97016341c103172deda8853b1f /mu.arc.t
parent89ee18a13effc454fbb4accb094119d5d3398a29 (diff)
downloadmu-6d24d47bd755b4a320ca8d7a84698b500024dc97.tar.gz
135
Diffstat (limited to 'mu.arc.t')
-rw-r--r--mu.arc.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t
index 9c63d882..a9afb940 100644
--- a/mu.arc.t
+++ b/mu.arc.t
@@ -806,6 +806,22 @@
   (prn "F - missing 'arg' sets a second oarg when provided"))
 ;? (quit)
 
+(reset)
+(new-trace "new-fn-arg-missing-3")
+(add-fns
+  '((test1
+      ((4 integer) <- arg)
+      ((5 integer) <- copy (34 literal))
+      ((5 integer) (6 boolean) <- arg))
+    (main
+      (test1 (1 literal))
+    )))
+(run 'main)
+;? (prn memory*)
+(if (~iso memory* (obj 4 1  6 t))
+  (prn "F - missing 'arg' consistently wipes its oarg"))
+;? (quit)
+
 ; how should errors be handled? will be unclear until we support concurrency and routine trees.
 
 (reset)