1#include <sysio/vm/backend.hpp>
21std::vector<uint8_t> mem_wasm = {
22 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x05, 0x01, 0x60,
23 0x00, 0x01, 0x7f, 0x03, 0x02, 0x01, 0x00, 0x05, 0x04, 0x01, 0x01, 0x03,
24 0x06, 0x07, 0x05, 0x01, 0x01, 0x66, 0x00, 0x00, 0x0a, 0x08, 0x01, 0x06,
25 0x00, 0x41, 0x01, 0x40, 0x00, 0x0b
28struct empty_options {};
29struct static_options_2 {
30 static constexpr std::uint32_t
max_pages = 2;
32struct static_options_3 {
33 static constexpr std::uint32_t
max_pages = 3;
35struct dynamic_options {
backend & initialize(host_t *host, const Options &new_options)
auto call_with_return(host_t &host, const std::string_view &mod, const std::string_view &func, Args... args)
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
#define BACKEND_TEST_CASE(name, tags)