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... 41# CHECK: --- !WASM 42# CHECK: FileHeader: 43# CHECK: Version: 0x00000001 44# CHECK: Sections: 45# CHECK: - Type: TYPE 46# CHECK: Signatures: 47# CHECK: - Index: 0 48# CHECK: ReturnType: F32 49# CHECK: ParamTypes: 50# CHECK: - I32 51# CHECK: - Index: 1 52# CHECK: ReturnType: NORESULT 53# CHECK: ParamTypes: 54# CHECK: - I32 55# CHECK: - I64 56# CHECK: - Type: CODE 57# CHECK: Relocations: 58# CHECK: - Type: R_WEBASSEMBLY_TABLE_INDEX_SLEB 59# CHECK: Index: 0 60# CHECK: Offset: 0x00000006 61# CHECK: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 62# CHECK: Index: 1 63# CHECK: Offset: 0x00000025 64# CHECK: Functions: 65# CHECK: - Index: 0 66# CHECK: Locals: 67# CHECK: - Type: I32 68# CHECK: Count: 3 69# CHECK: Body: 418080808000210020002101200111808080800000210220020F0B 70# CHECK: - Index: 1 71# CHECK: Locals: 72# CHECK: - Type: I32 73# CHECK: Count: 1 74# CHECK: Body: 108180808000210020000F0B 75