| 1 |
(component |
| 2 |
(type $x (;0;) (resource (rep i32))) |
| 3 |
(core func $f1 (;0;) (canon resource.new $x)) |
| 4 |
(core func $f2 (;1;) (canon resource.rep $x)) |
| 5 |
(core func $f3 (;2;) (canon resource.drop $x)) |
| 6 |
(core module $m (;0;) |
| 7 |
(type (;0;) (func (param i32) (result i32))) |
| 8 |
(type (;1;) (func (param i32))) |
| 9 |
(import "" "f1" (func (;0;) (type 0))) |
| 10 |
(import "" "f2" (func (;1;) (type 0))) |
| 11 |
(import "" "f3" (func (;2;) (type 1))) |
| 12 |
) |
| 13 |
(core instance (;0;) |
| 14 |
(export "f1" (func $f1)) |
| 15 |
(export "f2" (func $f2)) |
| 16 |
(export "f3" (func $f3)) |
| 17 |
) |
| 18 |
(core instance (;1;) (instantiate $m |
| 19 |
(with "" (instance 0)) |
| 20 |
) |
| 21 |
) |
| 22 |
) |