78 lines · yaml
1# RUN: yaml2obj %s | obj2yaml | FileCheck %s2--- !WASM3FileHeader:4 Version: 0x000000015Sections:6 - Type: TYPE7 Signatures:8 - Index: 09 ParamTypes: []10 ReturnTypes:11 - I3212 - Type: FUNCTION13 FunctionTypes: [ 0, 0 ]14 - Type: GLOBAL15 Globals:16 - Index: 017 Type: I3218 Mutable: false19 InitExpr:20 Opcode: I32_CONST21 Value: 122 - Type: EXPORT23 Exports:24 - Name: function_export25 Kind: FUNCTION26 Index: 127 - Name: global_export28 Kind: GLOBAL29 Index: 030 - Type: CODE31 Functions:32 - Index: 033 Locals:34 Body: 0035 - Index: 136 Locals:37 Body: 0038 - Type: CUSTOM39 Name: linking40 Version: 241 SymbolTable:42 - Index: 043 Kind: FUNCTION44 Name: function_export45 Flags: [ BINDING_WEAK ]46 Function: 047 - Index: 148 Kind: GLOBAL49 Name: global_export50 Flags: [ BINDING_WEAK ]51 Global: 052...53# CHECK: --- !WASM54# CHECK: FileHeader:55# CHECK: Version: 0x156# CHECK: Sections:57# CHECK: - Type: EXPORT58# CHECK: Exports:59# CHECK: - Name: function_export60# CHECK: Kind: FUNCTION61# CHECK: Index: 162# CHECK: - Name: global_export63# CHECK: Kind: GLOBAL64# CHECK: Index: 065# CHECK: - Type: CUSTOM66# CHECK: Name: linking67# CHECK: SymbolTable:68# CHECK: - Index: 069# CHECK: Kind: FUNCTION70# CHECK: Name: function_export71# CHECK: Flags: [ BINDING_WEAK ]72# CHECK: Function: 073# CHECK: - Index: 174# CHECK: Kind: GLOBAL75# CHECK: Name: global_export76# CHECK: Flags: [ BINDING_WEAK ]77# CHECK: Global: 078