| 43 | } |
| 44 | |
| 45 | WasmEdge::AST::GlobalSection |
| 46 | createGlobalSec(WasmEdge::AST::GlobalType GlobalType) { |
| 47 | WasmEdge::AST::GlobalSection GlobalSec; |
| 48 | WasmEdge::AST::GlobalSegment GlobalSeg; |
| 49 | GlobalSeg.getGlobalType() = GlobalType; |
| 50 | GlobalSeg.getExpr().getInstrs() = { |
| 51 | WasmEdge::AST::Instruction(WasmEdge::OpCode::End)}; |
| 52 | GlobalSec.getContent() = {GlobalSeg}; |
| 53 | return GlobalSec; |
| 54 | } |
| 55 | |
| 56 | TEST(serializeTypeTest, SerializeFunctionType) { |
| 57 | WasmEdge::Configure ConfWASM1; |
no test coverage detected