;; RUN: wast --assert default --snapshot tests/snapshots % ;; Based on this, we can link two modules $A and $B together with the following component: (component (core module $A (func (export "one") (result i32) (i32.const 1)) ) (core module $B (func (import "a" "one") (result i32)) ) (core instance $a (instantiate $A)) (core instance $b (instantiate $B (with "a" (instance $a)))) )