Debian Codegraph @

tests/snapshots/cli/gc/type-subtyping.wast/25.print

raw
1 (module
2 (type $t1 (;0;) (sub (func)))
3 (type $t2 (;1;) (func))
4 (table (;0;) 2 2 funcref)
5 (export "fail1" (func 2))
6 (export "fail2" (func 3))
7 (export "fail3" (func 4))
8 (export "fail4" (func 5))
9 (elem (;0;) (table 0) (i32.const 0) func $f1 $f2)
10 (func $f1 (;0;) (type $t1))
11 (func $f2 (;1;) (type $t2))
12 (func (;2;) (type $t1)
13 block ;; label = @1
14 i32.const 1
15 call_indirect (type $t1)
16 end
17 )
18 (func (;3;) (type $t1)
19 block ;; label = @1
20 i32.const 0
21 call_indirect (type $t2)
22 end
23 )
24 (func (;4;) (type $t1)
25 i32.const 1
26 table.get 0
27 ref.cast (ref $t1)
28 drop
29 )
30 (func (;5;) (type $t1)
31 i32.const 0
32 table.get 0
33 ref.cast (ref $t2)
34 drop
35 )
36 )