message: test: Add memory.grow cases with huge hard memory limit
diff: @@ -673,6 +673,7 @@ TEST(execute, memory_grow_custom_hard_limit)
  {1, 1},
  {15, 1},
  {16, -1},
  + {65535, -1},
  {0xffffffff, -1},
  };
  @@ -693,6 +694,15 @@ TEST(execute, memory_grow_custom_hard_limit)
  EXPECT_THAT(execute(*instance, 0, {input}), Result(expected));
  }
  + {
  + const auto instance_huge_hard_limit = instantiate(*module, {}, {}, {}, {}, 65536);
  + // For huge hard limit we test only failure cases, because allocating 4GB of memory would
  + // be too slow for unit tests.
  + // EXPECT_THAT(execute(*instance_huge_hard_limit, 0, {65535}), Result(1));
  + EXPECT_THAT(execute(*instance_huge_hard_limit, 0, {65536}), Result(-1));
  + EXPECT_THAT(execute(*instance_huge_hard_limit, 0, {0xffffffff}), Result(-1));
  + }
  +
  /* wat2wasm
  (memory 1 16)
  (func (param i32) (result i32)
  @@ -734,6 +744,14 @@ TEST(execute, memory_grow_custom_hard_limit)
  EXPECT_THAT(execute(*instance_max_limit, 0, {input}), Result(expected));
  }
  + {
  + bytes memory(PageSize, 0);
  + const auto instance_huge_hard_limit =
  + instantiate(*module_imported, {}, {}, {{&memory, {1, std::nullopt}}}, {}, 65536);
  + EXPECT_THAT(execute(*instance_huge_hard_limit, 0, {65536}), Result(-1));
  + EXPECT_THAT(execute(*instance_huge_hard_limit, 0, {0xffffffff}), Result(-1));
  + }
  +
  /* wat2wasm
  (memory (import "mod" "mem") 1 16)
  (func (param i32) (result i32)
  