message: test: Add a call test of imported wasm function
diff: @@ -461,6 +461,43 @@ TEST(execute_call, imported_function_from_another_module)
  const auto module1 = parse(bin1);
  auto instance1 = instantiate(*module1);
  + /* wat2wasm
  + (module
  + (func $sub (import "m1" "sub") (param $lhs i32) (param $rhs i32) (result i32))
  +
  + (func $main (param i32) (param i32) (result i32)
  + local.get 0
  + local.get 1
  + call $sub
  + )
  + )
  + */
  + const auto bin2 = from_hex(
  + "0061736d0100000001070160027f7f017f020a01026d31037375620000030201000a0a0108002000200110000"
  + "b");
  +
  + auto instance2 = instantiate(parse(bin2), {*find_exported_function(*instance1, "sub")});
  +
  + EXPECT_THAT(execute(*instance2, 1, {44, 2}), Result(42));
  + EXPECT_THAT(execute(*instance2, 0, {44, 2}), Result(42));
  +}
  +
  +TEST(execute_call, imported_function_from_another_module_via_host_function)
  +{
  + /* wat2wasm
  + (module
  + (func $sub (param $lhs i32) (param $rhs i32) (result i32)
  + local.get $lhs
  + local.get $rhs
  + i32.sub)
  + (export "sub" (func $sub))
  + )
  + */
  + const auto bin1 = from_hex(
  + "0061736d0100000001070160027f7f017f030201000707010373756200000a09010700200020016b0b");
  + const auto module1 = parse(bin1);
  + auto instance1 = instantiate(*module1);
  +
  /* wat2wasm
  (module
  (func $sub (import "m1" "sub") (param $lhs i32) (param $rhs i32) (result i32))
  