1#include <sysio/vm/backend.hpp>
17std::vector<uint8_t> block_wasm = {
18 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x04, 0x01, 0x60,
19 0x00, 0x00, 0x03, 0x02, 0x01, 0x00, 0x0a, 0x07, 0x01, 0x05, 0x00, 0x02,
28std::vector<uint8_t> loop_wasm = {
29 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x04, 0x01, 0x60,
30 0x00, 0x00, 0x03, 0x02, 0x01, 0x00, 0x0a, 0x07, 0x01, 0x05, 0x00, 0x03,
39std::vector<uint8_t> if_wasm = {
40 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x04, 0x01, 0x60,
41 0x00, 0x00, 0x03, 0x02, 0x01, 0x00, 0x0a, 0x09, 0x01, 0x07, 0x00, 0x41,
42 0x00, 0x04, 0x00 , 0x0b, 0x0b
45struct empty_options {};
46struct static_options_false {
47 static constexpr bool allow_zero_blocktype =
false;
49struct static_options_true {
50 static constexpr std::uint32_t allow_zero_blocktype =
true;
52struct dynamic_options {
53 bool allow_zero_blocktype;
95 backend_t backend_block(block_wasm,
nullptr, dynamic_options{
true});
96 backend_t backend_loop(loop_wasm,
nullptr, dynamic_options{
true});
97 backend_t backend_if(if_wasm,
nullptr, dynamic_options{
true});
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
#define BACKEND_TEST_CASE(name, tags)