tests/snapshots/cli/component-model/link.wast/0.print
raw| 1 | (component |
| 2 | (core module $A (;0;) |
| 3 | (type (;0;) (func (result i32))) |
| 4 | (export "one" (func 0)) |
| 5 | (func (;0;) (type 0) (result i32) |
| 6 | i32.const 1 |
| 7 | ) |
| 8 | ) |
| 9 | (core module $B (;1;) |
| 10 | (type (;0;) (func (result i32))) |
| 11 | (import "a" "one" (func (;0;) (type 0))) |
| 12 | ) |
| 13 | (core instance $a (;0;) (instantiate $A)) |
| 14 | (core instance $b (;1;) (instantiate $B |
| 15 | (with "a" (instance $a)) |
| 16 | ) |
| 17 | ) |
| 18 | ) |