aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2019-08-08 09:41:28 +0200
committerJohn Högberg <[email protected]>2019-08-08 09:41:28 +0200
commit9d81adde66efa1f1a70345c70874e42707273db6 (patch)
tree0ead664e3e255c0a6e06992af3cea6445e6fa0f7 /lib/compiler/test
parent1e01e521d89cdf3fb7a52be0d24fd36b0fe30f4a (diff)
parent6ae9975689858d0e0c9af0a36869c012bb3762c0 (diff)
downloadotp-9d81adde66efa1f1a70345c70874e42707273db6.tar.gz
otp-9d81adde66efa1f1a70345c70874e42707273db6.tar.bz2
otp-9d81adde66efa1f1a70345c70874e42707273db6.zip
Merge branch 'john/compiler/fix-bs_skip-succeeded-oddity'
* john/compiler/fix-bs_skip-succeeded-oddity: compiler: Fix awkward match context substitution beam_ssa_lint: Use #b_var{} instead of variable names
Diffstat (limited to 'lib/compiler/test')
-rw-r--r--lib/compiler/test/misc_SUITE.erl24
1 files changed, 22 insertions, 2 deletions
diff --git a/lib/compiler/test/misc_SUITE.erl b/lib/compiler/test/misc_SUITE.erl
index eb60dc049d..20fadc4fdb 100644
--- a/lib/compiler/test/misc_SUITE.erl
+++ b/lib/compiler/test/misc_SUITE.erl
@@ -274,14 +274,34 @@ silly_coverage(Config) when is_list(Config) ->
bad_ssa_lint_input() ->
{b_module,#{},t,
- [{foobar,1},{module_info,0},{module_info,1}],
+ [{a,1},{b,1},{c,1},{module_info,0},{module_info,1}],
[],
[{b_function,
- #{func_info => {t,foobar,1},location => {"t.erl",4}},
+ #{func_info => {t,a,1},location => {"t.erl",4}},
[{b_var,0}],
#{0 => {b_blk,#{},[],{b_ret,#{},{b_var,'@undefined_var'}}}},
3},
{b_function,
+ #{func_info => {t,b,1},location => {"t.erl",5}},
+ [{b_var,0}],
+ #{0 =>
+ {b_blk,#{},
+ [{b_set,#{},{b_var,'@first_var'},first_op,[]},
+ {b_set,#{},{b_var,'@second_var'},second_op,[]},
+ {b_set,#{},{b_var,'@ret'},succeeded,[{b_var,'@first_var'}]}],
+ {b_ret,#{},{b_var,'@ret'}}}},
+ 3},
+ {b_function,
+ #{func_info => {t,c,1},location => {"t.erl",6}},
+ [{b_var,0}],
+ #{0 =>
+ {b_blk,#{},
+ [{b_set,#{},{b_var,'@first_var'},first_op,[]},
+ {b_set,#{},{b_var,'@ret'},succeeded,[{b_var,'@first_var'}]},
+ {b_set,#{},{b_var,'@second_var'},second_op,[]}],
+ {b_ret,#{},{b_var,'@ret'}}}},
+ 3},
+ {b_function,
#{func_info => {t,module_info,0}},
[],
#{0 =>