1# RUN: yaml2obj %s | obj2yaml | FileCheck %s 2--- !WASM 3FileHeader: 4 Version: 0x00000001 5Sections: 6 - Type: TYPE 7 Signatures: 8 - ReturnType: F32 9 ParamTypes: 10 - I32 11 - ReturnType: NORESULT 12 ParamTypes: 13 - I32 14 - I64 15 - Type: FUNCTION 16 FunctionTypes: 17 - 0 18 - 1 19 - Type: CODE 20 Relocations: 21 - Type: R_WEBASSEMBLY_TABLE_INDEX_SLEB 22 Index: 0 23 Offset: 0x00000006 24 - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 25 Index: 1 26 Offset: 0x00000025 27 Functions: 28 - Locals: 29 - Type: I32 30 Count: 3 31 Body: 418080808000210020002101200111808080800000210220020F0B 32 - Locals: 33 - Type: I32 34 Count: 1 35 Body: 108180808000210020000F0B 36... 37# CHECK: --- !WASM 38# CHECK: FileHeader: 39# CHECK: Version: 0x00000001 40# CHECK: Sections: 41# CHECK: - Type: TYPE 42# CHECK: Signatures: 43# CHECK: - Index: 0 44# CHECK: ReturnType: F32 45# CHECK: ParamTypes: 46# CHECK: - I32 47# CHECK: - Index: 1 48# CHECK: ReturnType: NORESULT 49# CHECK: ParamTypes: 50# CHECK: - I32 51# CHECK: - I64 52# CHECK: - Type: CODE 53# CHECK: Relocations: 54# CHECK: - Type: R_WEBASSEMBLY_TABLE_INDEX_SLEB 55# CHECK: Index: 0 56# CHECK: Offset: 0x00000006 57# CHECK: - Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 58# CHECK: Index: 1 59# CHECK: Offset: 0x00000025 60# CHECK: Functions: 61# CHECK: - Locals: 62# CHECK: - Type: I32 63# CHECK: Count: 3 64# CHECK: Body: 418080808000210020002101200111808080800000210220020F0B 65# CHECK: - Locals: 66# CHECK: - Type: I32 67# CHECK: Count: 1 68# CHECK: Body: 108180808000210020000F0B 69