| 1 |
(module |
| 2 |
(type $ft1 (;0;) (func (param i32) (result i32))) |
| 3 |
(type $ct1 (;1;) (cont $ft1)) |
| 4 |
(type $ft2 (;2;) (func (param i32 i32) (result i32))) |
| 5 |
(type $ct2 (;3;) (cont $ft2)) |
| 6 |
(type (;4;) (func (param (ref $ct1)))) |
| 7 |
(type (;5;) (func (param (ref $ft1)) (result (ref $ct1)))) |
| 8 |
(type (;6;) (func (param (ref null $ft1)) (result (ref $ct1)))) |
| 9 |
(export "f1" (func $f1)) |
| 10 |
(func $f1 (;0;) (type $ft1) (param i32) (result i32) |
| 11 |
(i32.const 123) |
| 12 |
) |
| 13 |
(func $drop_ct1 (;1;) (type 4) (param $c (ref $ct1))) |
| 14 |
(func $test_good1 (;2;) (type 5) (param $x (ref $ft1)) (result (ref $ct1)) |
| 15 |
(cont.new $ct1 |
| 16 |
(local.get $x)) |
| 17 |
) |
| 18 |
(func $test_good2 (;3;) (type 6) (param $x (ref null $ft1)) (result (ref $ct1)) |
| 19 |
(cont.new $ct1 |
| 20 |
(local.get $x)) |
| 21 |
) |
| 22 |
) |