aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-08-09 12:27:59 +0200
committerBjörn Gustavsson <[email protected]>2012-08-15 10:54:52 +0200
commit6f23f159d965af86722724144f132caf27ab5e76 (patch)
treec6444365fdf108df2359a34e2ede820a90651f82 /lib/compiler/test
parent39608562fa4efdf4528a7cf3b9823cc84fa7946a (diff)
downloadotp-6f23f159d965af86722724144f132caf27ab5e76.tar.gz
otp-6f23f159d965af86722724144f132caf27ab5e76.tar.bz2
otp-6f23f159d965af86722724144f132caf27ab5e76.zip
beam_type: Print the offending function if this pass crashes
Diffstat (limited to 'lib/compiler/test')
-rw-r--r--lib/compiler/test/misc_SUITE.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/compiler/test/misc_SUITE.erl b/lib/compiler/test/misc_SUITE.erl
index 5e13a93c52..b53d0dba1d 100644
--- a/lib/compiler/test/misc_SUITE.erl
+++ b/lib/compiler/test/misc_SUITE.erl
@@ -190,6 +190,15 @@ silly_coverage(Config) when is_list(Config) ->
{label,2}|non_proper_list]}],99},
?line expect_error(fun() -> beam_block:module(BlockInput, []) end),
+ %% beam_type
+ TypeInput = {?MODULE,[{foo,0}],[],
+ [{function,foo,0,2,
+ [{label,1},
+ {line,loc},
+ {func_info,{atom,?MODULE},{atom,foo},0},
+ {label,2}|non_proper_list]}],99},
+ expect_error(fun() -> beam_type:module(TypeInput, []) end),
+
%% beam_except
ExceptInput = {?MODULE,[{foo,0}],[],
[{function,foo,0,2,