1#include <sysio/vm/backend.hpp>
17std::vector<uint8_t> bad_local_wasm = {
18 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x04, 0x01, 0x60,
19 0x00, 0x00, 0x03, 0x02, 0x01, 0x00, 0x0a, 0x06, 0x01, 0x04, 0x01, 0x00,
23struct empty_options {};
24struct static_options_false {
25 static constexpr bool allow_invalid_empty_local_set =
false;
27struct static_options_true {
28 static constexpr bool allow_invalid_empty_local_set =
true;
30struct dynamic_options {
31 bool allow_invalid_empty_local_set;
36BACKEND_TEST_CASE(
"Test allow_invalid_empty_local_set default",
"[allow_invalid_empty_local_set_test]") {
41BACKEND_TEST_CASE(
"Test allow_invalid_empty_local_set empty",
"[allow_invalid_empty_local_set_test]") {
46BACKEND_TEST_CASE(
"Test allow_invalid_empty_local_set static fail",
"[allow_invalid_empty_local_set_test]") {
51BACKEND_TEST_CASE(
"Test allow_invalid_empty_local_set static pass",
"[allow_invalid_empty_local_set_test]") {
56BACKEND_TEST_CASE(
"Test allow_invalid_empty_local_set dynamic fail",
"[allow_invalid_empty_local_set_test]") {
61BACKEND_TEST_CASE(
"Test allow_invalid_empty_local_set dynamic pass",
"[allow_invalid_empty_local_set_test]") {
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
#define BACKEND_TEST_CASE(name, tags)