Debian Codegraph @

tests/cli/print-deprecated-exceptions.wat

raw
1 ;; RUN: print %
2
3 (module
4 (type (func (param i32 i64)))
5 (type (func (param i32)))
6 (tag (import "m" "t") (type 0))
7 (tag (type 1))
8 (func $check-throw
9 i32.const 1
10 i64.const 2
11 throw 0
12 )
13 (func $check-try-catch-rethrow
14 try (result i32 i64)
15 call $check-throw
16 unreachable
17 catch 0
18 ;; the exception arguments are on the stack at this point
19 catch 1
20 i64.const 2
21 catch_all
22 rethrow 0
23 end
24 drop
25 drop
26 )
27 (func $try-with-params
28 i32.const 0
29 try (param i32) (result i32 i64)
30 i32.popcnt
31 drop
32 call $check-throw
33 unreachable
34 catch 1
35 i64.const 2
36 catch_all
37 i32.const 0
38 i64.const 2
39 end
40 drop
41 drop
42 )
43 (func $mix-old-and-new
44 try_table
45 try
46 catch_all
47 end
48 end
49 )
50 )