[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / llvm / test / tools / llvm-objcopy / wasm / section-header-size.test
blob4ea73f6668e35409ca7ee9e3e33946d3d25770da
1 ## Test that objcopy generates section headers that are identical to those from
2 ## the input binary, including the encoded size of the LEB that represents the
3 ## section size.
5 # RUN: yaml2obj %s -o %t.wasm
6 # RUN: llvm-objcopy %t.wasm %t.wasm.copy
7 # RUN: diff %t.wasm %t.wasm.copy
9 --- !WASM
10 FileHeader:
11   Version:         0x1
12 Sections:
13   - Type:            TYPE
14     HeaderSecSizeEncodingLen:   3
15     Signatures:
16       - Index:           0
17         ParamTypes:
18           - I32
19           - I32
20         ReturnTypes:
21           - I32
22   - Type:            FUNCTION
23     HeaderSecSizeEncodingLen:  4
24     FunctionTypes:             [ 0 ]
25   - Type:            MEMORY
26     HeaderSecSizeEncodingLen:  1
27     Memories:
28       - Flags:           [ HAS_MAX ]
29         Minimum:         0x100
30         Maximum:         0x100
31   - Type:            EXPORT
32     HeaderSecSizeEncodingLen:  5
33     Exports:
34       - Name:            add
35         Kind:            FUNCTION
36         Index:           0
37   - Type:            CODE
38     Functions:
39       - Index:           0
40         Locals:          []
41         Body:            200020016A0B