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    SymbolTable:
43      - Index:           0
44        Kind:            FUNCTION
45        Name:            func1
46        Flags:           [  ]
47        Function:        0
48      - Index:           1
49        Kind:            FUNCTION
50        Name:            func2
51        Flags:           [  ]
52        Function:        1
53...
54# CHECK: --- !WASM
55# CHECK: FileHeader:
56# CHECK:   Version:           0x00000001
57# CHECK: Sections:
58# CHECK:  - Type:            TYPE
59# CHECK:    Signatures:
60# CHECK:      - Index:           0
61# CHECK:        ReturnType:      F32
62# CHECK:        ParamTypes:
63# CHECK:          - I32
64# CHECK:      - Index:           1
65# CHECK:        ReturnType:      NORESULT
66# CHECK:        ParamTypes:
67# CHECK:          - I32
68# CHECK:          - I64
69# CHECK:  - Type:            CODE
70# CHECK:    Relocations:
71# CHECK:      - Type:            R_WEBASSEMBLY_TABLE_INDEX_SLEB
72# CHECK:        Index:           0
73# CHECK:        Offset:          0x00000006
74# CHECK:      - Type:            R_WEBASSEMBLY_FUNCTION_INDEX_LEB
75# CHECK:        Index:           1
76# CHECK:        Offset:          0x00000025
77# CHECK:    Functions:
78# CHECK:      - Index:              0
79# CHECK:        Locals:
80# CHECK:         - Type:            I32
81# CHECK:           Count:           3
82# CHECK:        Body:            418080808000210020002101200111808080800000210220020F0B
83# CHECK:      - Index:              1
84# CHECK:        Locals:
85# CHECK:         - Type:            I32
86# CHECK:           Count:           1
87# CHECK:        Body:            108180808000210020000F0B
88