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-11-03 23:58:06 -0800
committerKartik K. Agaram <vc@akkartik.com>2014-11-03 23:58:06 -0800
commitc6ef4826d6e6f7cac8108167209a3c65977986a7 (patch)
tree01b4451d1cae4ba85aa36ed95d57d1eaf0f0ca9e /mu.arc.t
parentf9dd5af5c0613501c2a38e8a859af1153e985a52 (diff)
downloadmu-c6ef4826d6e6f7cac8108167209a3c65977986a7.tar.gz
219
Diffstat (limited to 'mu.arc.t')
-rw-r--r--mu.arc.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t
index 8789e208..c28e1d6c 100644
--- a/mu.arc.t
+++ b/mu.arc.t
@@ -1330,6 +1330,13 @@
                  ((bool boolean) <- copy (t literal)))))
   (prn "F - convert-names doesn't allow offsets and variables with the same name in a function - 2"))
 
+(reset)
+(new-trace "convert-names-record-fields-indirect")
+(if (~iso (convert-names
+            '(((x integer) <- get (34 integer-boolean-pair-address deref) (bool offset))))
+          '(((1 integer) <- get (34 integer-boolean-pair-address deref) (1 offset))))
+  (prn "F - convert-names replaces field offsets for record addresses"))
+
 ; A rudimentary memory allocator. Eventually we want to write this in mu.
 ;
 ; No deallocation yet; let's see how much code we can build in mu before we