| 149 | } |
| 150 | |
| 151 | static ValType result(const char *wat) { |
| 152 | Engine engine; |
| 153 | auto component = Component::compile(engine, wat).unwrap(); |
| 154 | return *component.type().import_get(engine, "f")->component_func().result(); |
| 155 | } |
| 156 | |
| 157 | TEST(types, valtype_primitives) { |
| 158 | EXPECT_TRUE( |