122#define SECTION_TEST_CASE_IMPL(name, wasm) \
123BACKEND_TEST_CASE("Test max_" #name "_section_elements", "[max_section_elements_test]") { \
124 backend<std::nullptr_t, TestType> backend_default(wasm, &wa); \
125 backend<std::nullptr_t, TestType, empty_options> backend_empty(wasm, &wa); \
126 CHECK_THROWS_AS((backend<std::nullptr_t, TestType, static_options_1>(wasm, &wa)), wasm_parse_exception); \
127 backend<std::nullptr_t, TestType, static_options_2> backend_static_fallback(wasm, &wa); \
128 CHECK_THROWS_AS((backend<std::nullptr_t, TestType, dynamic_options>(wasm, nullptr, {1})), wasm_parse_exception); \
129 backend<std::nullptr_t, TestType, dynamic_options> backend_dynamic_fallback(wasm, nullptr, {2}); \
130 \
131 CHECK_THROWS_AS((backend<std::nullptr_t, TestType, name ## _static_options_1>(wasm, &wa)), wasm_parse_exception); \
132 backend<std::nullptr_t, TestType, name ## _static_options_2> backend_static(wasm, &wa); \
133 CHECK_THROWS_AS((backend<std::nullptr_t, TestType, name ## _dynamic_options>(wasm, nullptr, {1})), wasm_parse_exception); \
134 backend<std::nullptr_t, TestType, name ## _dynamic_options> backend_dynamic(wasm, nullptr, {2}); \
135}