1# RUN: yaml2obj %s | obj2yaml | FileCheck %s 2--- !WASM 3FileHeader: 4 Version: 0x00000001 5Sections: 6 - Type: TYPE 7 Signatures: 8 - Index: 0 9 ReturnType: F32 10 ParamTypes: 11 - I32 12 - Index: 1 13 ReturnType: NORESULT 14 ParamTypes: 15 - I32 16 - I64 17 - Type: FUNCTION 18 FunctionTypes: 19 - 0 20 - 1 21 - Type: CODE 22 Relocations: 23 - Type: R_WEBASSEMBLY_TABLE_INDEX_SLEB 24 Index: 0 25 Offset: 0x00000006 26 - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 27 Index: 1 28 Offset: 0x00000025 29 Functions: 30 - Index: 0 31 Locals: 32 - Type: I32 33 Count: 3 34 Body: 418080808000210020002101200111808080800000210220020F0B 35 - Index: 1 36 Locals: 37 - Type: I32 38 Count: 1 39 Body: 108180808000210020000F0B 40 - Type: CUSTOM 41 Name: linking 42 Version: 1 43 SymbolTable: 44 - Index: 0 45 Kind: FUNCTION 46 Name: func1 47 Flags: [ ] 48 Function: 0 49 - Index: 1 50 Kind: FUNCTION 51 Name: func2 52 Flags: [ ] 53 Function: 1 54... 55# CHECK: --- !WASM 56# CHECK: FileHeader: 57# CHECK: Version: 0x00000001 58# CHECK: Sections: 59# CHECK: - Type: TYPE 60# CHECK: Signatures: 61# CHECK: - Index: 0 62# CHECK: ReturnType: F32 63# CHECK: ParamTypes: 64# CHECK: - I32 65# CHECK: - Index: 1 66# CHECK: ReturnType: NORESULT 67# CHECK: ParamTypes: 68# CHECK: - I32 69# CHECK: - I64 70# CHECK: - Type: CODE 71# CHECK: Relocations: 72# CHECK: - Type: R_WEBASSEMBLY_TABLE_INDEX_SLEB 73# CHECK: Index: 0 74# CHECK: Offset: 0x00000006 75# CHECK: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 76# CHECK: Index: 1 77# CHECK: Offset: 0x00000025 78# CHECK: Functions: 79# CHECK: - Index: 0 80# CHECK: Locals: 81# CHECK: - Type: I32 82# CHECK: Count: 3 83# CHECK: Body: 418080808000210020002101200111808080800000210220020F0B 84# CHECK: - Index: 1 85# CHECK: Locals: 86# CHECK: - Type: I32 87# CHECK: Count: 1 88# CHECK: Body: 108180808000210020000F0B 89