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        Addend:          0x00000000
25      - Type:            R_WEBASSEMBLY_FUNCTION_INDEX_LEB
26        Index:           1
27        Offset:          0x00000025
28        Addend:          0x00000000
29    Functions:
30      - Locals:
31         - Type:            I32
32           Count:           3
33        Body:            418080808000210020002101200111808080800000210220020F0B
34      - Locals:
35         - Type:            I32
36           Count:           1
37        Body:            108180808000210020000F0B
38...
39# CHECK: --- !WASM
40# CHECK: FileHeader:
41# CHECK:   Version:           0x00000001
42# CHECK: Sections:
43# CHECK:  - Type:            TYPE
44# CHECK:    Signatures:
45# CHECK:      - Index:           0
46# CHECK:        ReturnType:      F32
47# CHECK:        ParamTypes:
48# CHECK:          - I32
49# CHECK:      - Index:           1
50# CHECK:        ReturnType:      NORESULT
51# CHECK:        ParamTypes:
52# CHECK:          - I32
53# CHECK:          - I64
54# CHECK:  - Type:            CODE
55# CHECK:    Relocations:
56# CHECK:      - Type:            R_WEBASSEMBLY_TABLE_INDEX_SLEB
57# CHECK:        Index:           0
58# CHECK:        Offset:          0x00000006
59# CHECK:        Addend:          0x00000000
60# CHECK:      - Type:            R_WEBASSEMBLY_FUNCTION_INDEX_LEB
61# CHECK:        Index:           1
62# CHECK:        Offset:          0x00000025
63# CHECK:        Addend:          0x00000000
64# CHECK:    Functions:
65# CHECK:      - Locals:
66# CHECK:         - Type:            I32
67# CHECK:           Count:           3
68# CHECK:        Body:            418080808000210020002101200111808080800000210220020F0B
69# CHECK:      - Locals:
70# CHECK:         - Type:            I32
71# CHECK:           Count:           1
72# CHECK:        Body:            108180808000210020000F0B
73