1#include <sysio/vm/backend.hpp>
17std::vector<uint8_t> two_elements_wasm = {
18 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x04, 0x01, 0x60,
19 0x00, 0x00, 0x03, 0x02, 0x01, 0x00, 0x0a, 0x0b, 0x01, 0x09, 0x00, 0x41,
20 0x00, 0x0e, 0x02, 0x00, 0x00, 0x00, 0x0b
23struct empty_options {};
24struct static_options_1 {
25 static constexpr std::uint32_t max_br_table_elements = 1;
27struct static_options_2 {
28 static constexpr std::uint32_t max_br_table_elements = 2;
30struct dynamic_options {
31 std::uint32_t max_br_table_elements;
46BACKEND_TEST_CASE(
"Test max_br_table_elements static fail",
"[max_br_table_elements_test]") {
51BACKEND_TEST_CASE(
"Test max_br_table_elements static pass",
"[max_br_table_elements_test]") {
56BACKEND_TEST_CASE(
"Test max_br_table_elements dynamic fail",
"[max_br_table_elements_test]") {
61BACKEND_TEST_CASE(
"Test max_br_table_elements dynamic pass",
"[max_br_table_elements_test]") {
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
#define BACKEND_TEST_CASE(name, tags)