diff options
author | Sverker Eriksson <[email protected]> | 2016-11-23 16:27:20 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-11-23 16:27:20 +0100 |
commit | 2ee19c8a5b44a5b4eeb21f1e6ba6ae4236563c6f (patch) | |
tree | fbcf02b955d84310dcdabdfe2d36cf9fdcca78fa /lib/hipe/test | |
parent | 46be02ff3a36f680013c7e8cd9152adc0e280361 (diff) | |
parent | bb4624af3e5e1a5979c547e70110a923f1c9d503 (diff) | |
download | otp-2ee19c8a5b44a5b4eeb21f1e6ba6ae4236563c6f.tar.gz otp-2ee19c8a5b44a5b4eeb21f1e6ba6ae4236563c6f.tar.bz2 otp-2ee19c8a5b44a5b4eeb21f1e6ba6ae4236563c6f.zip |
Merge branch 'margnus1/hipe-call-elim-crash/PR-1253/OTP-13965' into maint
* margnus1/hipe-call-elim-crash/PR-1253:
hipe_icode_call_elim: Fix cf elimination crash
hipe: Improve error message on internal crashes
Diffstat (limited to 'lib/hipe/test')
-rw-r--r-- | lib/hipe/test/maps_SUITE_data/maps_redundant_branch_is_key.erl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/hipe/test/maps_SUITE_data/maps_redundant_branch_is_key.erl b/lib/hipe/test/maps_SUITE_data/maps_redundant_branch_is_key.erl new file mode 100644 index 0000000000..17c3acd6af --- /dev/null +++ b/lib/hipe/test/maps_SUITE_data/maps_redundant_branch_is_key.erl @@ -0,0 +1,14 @@ +-module(maps_redundant_branch_is_key). +-export([test/0]). + +test() -> + ok = thingy(#{a => 1}), + ok = thingy(#{a => 2}), + ok. + +thingy(Map) -> + try + #{a := _} = Map, + ok + catch _ -> error + end. |