diff options
author | Björn Gustavsson <[email protected]> | 2015-02-20 10:17:22 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-02-20 10:17:22 +0100 |
commit | 4b5d5ad4d260d5c8b960e45aa4db445c9fd6eece (patch) | |
tree | 4c5dc9aa76b3c7ccbe01b73f1e2c70fb6f4de0f9 /lib/compiler/test/beam_validator_SUITE_data | |
parent | 704c712e99fe78a4e4769df99325198776921f88 (diff) | |
parent | d52142f95858fc2ea461e9b2b52c5835e39886d8 (diff) | |
download | otp-4b5d5ad4d260d5c8b960e45aa4db445c9fd6eece.tar.gz otp-4b5d5ad4d260d5c8b960e45aa4db445c9fd6eece.tar.bz2 otp-4b5d5ad4d260d5c8b960e45aa4db445c9fd6eece.zip |
Merge branch 'bjorn/compiler/maps'
* bjorn/compiler/maps:
beam_validator: Tighten and simplify map validation code
beam_utils: Correct test for has_map_fields in is_pure_test/1
map_SUITE: Cover comparisons of 'nil' in v3_codegen
Diffstat (limited to 'lib/compiler/test/beam_validator_SUITE_data')
-rw-r--r-- | lib/compiler/test/beam_validator_SUITE_data/map_field_lists.S | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/compiler/test/beam_validator_SUITE_data/map_field_lists.S b/lib/compiler/test/beam_validator_SUITE_data/map_field_lists.S new file mode 100644 index 0000000000..9af68c82d4 --- /dev/null +++ b/lib/compiler/test/beam_validator_SUITE_data/map_field_lists.S @@ -0,0 +1,29 @@ +{module, map_field_lists}. %% version = 0 + +{exports, [{x,1},{y,1}]}. + +{attributes, []}. + +{labels, 5}. + + +{function, x, 1, 2}. + {label,1}. + {line,[{location,"map_field_lists.erl",4}]}. + {func_info,{atom,map_field_lists},{atom,x},1}. + {label,2}. + {test,is_map,{f,1},[{x,0}]}. + {test,has_map_fields,{f,1},{x,0},{list,[{atom,z},{atom,a}]}}. + {move,{atom,ok},{x,0}}. + return. + + +{function, y, 1, 4}. + {label,3}. + {line,[{location,"map_field_lists.erl",7}]}. + {func_info,{atom,map_field_lists},{atom,y},1}. + {label,4}. + {test,is_map,{f,3},[{x,0}]}. + {test,has_map_fields,{f,3},{x,0},{list,[]}}. + {move,{atom,ok},{x,0}}. + return. |