aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/map_SUITE.erl
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2014-03-04 22:02:08 +0100
committerAnthony Ramine <[email protected]>2014-03-04 22:02:08 +0100
commitb0c011a5b5e1a0e02c6d2863238310f0d6bf8745 (patch)
tree4604406984c15832988dbf4e1b510ac6f4bcfc0d /lib/compiler/test/map_SUITE.erl
parentc199bd2923e7d733e60beb9bd27b3852cbb2e699 (diff)
downloadotp-b0c011a5b5e1a0e02c6d2863238310f0d6bf8745.tar.gz
otp-b0c011a5b5e1a0e02c6d2863238310f0d6bf8745.tar.bz2
otp-b0c011a5b5e1a0e02c6d2863238310f0d6bf8745.zip
Properly order Kernel code for maps with mixed pairs
The Kernel instructions were not properly ordered when compiling maps with complex values mixed in assoc and exact pairs. Reported-by: Ulf Norell
Diffstat (limited to 'lib/compiler/test/map_SUITE.erl')
-rw-r--r--lib/compiler/test/map_SUITE.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compiler/test/map_SUITE.erl b/lib/compiler/test/map_SUITE.erl
index 3639192a51..01c146507d 100644
--- a/lib/compiler/test/map_SUITE.erl
+++ b/lib/compiler/test/map_SUITE.erl
@@ -189,7 +189,9 @@ loop_match_and_update_literals_x_q(#{q:=Q0,x:=X0} = Map, [{X,Q}|Vs]) ->
t_update_map_expressions(Config) when is_list(Config) ->
M = maps:new(),
- #{ a := 1 } = M#{a => 1},
+ X = id(fondue),
+ M1 = #{ a := 1 } = M#{a => 1},
+ #{ b := {X} } = M1#{ a := 1, b => {X} },
#{ b := 2 } = (maps:new())#{ b => 2 },