aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/beam_validator_SUITE_data/bad_try_catch_nesting.S
blob: 9f1b21a17b5def46b95673cdc2197bd7bc1067f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{module, bad_try_catch_nesting}.  %% version = 0

{exports, [{main,2},{module_info,0},{module_info,1}]}.

{attributes, []}.

{labels, 11}.


{function, main, 2, 2}.
  {label,1}.
    {line,[{location,"bad_try_catch_nesting.erl",4}]}.
    {func_info,{atom,bad_try_catch_nesting},{atom,main},2}.
  {label,2}.
    {allocate_zero,3,2}.
    {'try',{y,1},{f,5}}.
    {move,{x,1},{y,0}}.
    {'try',{y,2},{f,3}}.
    {line,[{location,"bad_try_catch_nesting.erl",7}]}.
    {call_fun,0}.
    {try_end,{y,2}}.
    {jump,{f,4}}.
  {label,3}.
    {try_case,{y,2}}.
    {test,is_ne_exact,{f,4},[{x,0},{atom,error}]}.
    {line,[]}.
    {bif,raise,{f,0},[{x,2},{x,1}],{x,0}}.
  {label,4}.
    {move,{y,0},{x,0}}.
    {kill,{y,0}}.
    {line,[{location,"bad_try_catch_nesting.erl",12}]}.
    {call_fun,0}.
    {try_end,{y,1}}.
    {deallocate,3}.
    return.
  {label,5}.
    {try_case,{y,1}}.
    {test,is_eq_exact,{f,6},[{x,0},{atom,throw}]}.
    {deallocate,3}.
    return.
  {label,6}.
    {line,[]}.
    {bif,raise,{f,0},[{x,2},{x,1}],{x,0}}.


{function, module_info, 0, 8}.
  {label,7}.
    {line,[]}.
    {func_info,{atom,bad_try_catch_nesting},{atom,module_info},0}.
  {label,8}.
    {move,{atom,bad_try_catch_nesting},{x,0}}.
    {line,[]}.
    {call_ext_only,1,{extfunc,erlang,get_module_info,1}}.


{function, module_info, 1, 10}.
  {label,9}.
    {line,[]}.
    {func_info,{atom,bad_try_catch_nesting},{atom,module_info},1}.
  {label,10}.
    {move,{x,0},{x,1}}.
    {move,{atom,bad_try_catch_nesting},{x,0}}.
    {line,[]}.
    {call_ext_only,2,{extfunc,erlang,get_module_info,2}}.