[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / ObjectYAML / wasm / linking_section.yaml
blob2e3da8791c7bb67a84bd902390de687b1acf7d5b
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
2 --- !WASM
3 FileHeader:
4   Version:         0x00000001
5 Sections:
6   - Type:            TYPE
7     Signatures:
8       - Index:           0
9         ParamTypes:
10           - I32
11         ReturnTypes:
12           - I32
13   - Type:            IMPORT
14     Imports:
15       - Module:          foo
16         Field:           bar
17         Kind:            FUNCTION
18         SigIndex:        0
19   - Type:            DATA
20     Segments:
21       - InitFlags:        0
22         Offset:
23           Opcode:          I32_CONST
24           Value:           4
25         Content:         '10001000'
26       - InitFlags:        0
27         Offset:
28           Opcode:          I32_CONST
29           Value:           8
30         Content:         '11110000'
31   - Type:            CUSTOM
32     Name:            linking
33     Version:         2
34     SymbolTable:
35       - Index:           0
36         Kind:            FUNCTION
37         Name:            bar
38         Flags:           [ BINDING_WEAK, UNDEFINED ]
39         Function:        0
40     SegmentInfo:
41       - Index:       0
42         Alignment:   4
43         Flags:       [ ]
44         Name:        mydata
45       - Index:       1
46         Alignment:   2
47         Flags:       [ ]
48         Name:        moredata
49     InitFunctions:
50       - Priority:      1
51         Symbol:        0
52 ...
53 # CHECK:         SymbolTable:
54 # CHECK-NEXT:      - Index:           0
55 # CHECK-NEXT:        Kind:            FUNCTION
56 # CHECK-NEXT:        Name:            bar
57 # CHECK-NEXT:        Flags:           [ BINDING_WEAK, UNDEFINED ]
58 # CHECK-NEXT:        Function:        0
59 # CHECK-NEXT:    SegmentInfo:
60 # CHECK-NEXT:      - Index:           0
61 # CHECK-NEXT:        Name:            mydata
62 # CHECK-NEXT:        Alignment:       4
63 # CHECK-NEXT:        Flags:           [ ]
64 # CHECK-NEXT:      - Index:           1
65 # CHECK-NEXT:        Name:            moredata
66 # CHECK-NEXT:        Alignment:       2
67 # CHECK-NEXT:        Flags:           [ ]
68 # CHECK-NEXT:    InitFunctions:
69 # CHECK-NEXT:       - Priority:       1
70 # CHECK-NEXT:         Symbol:         0
71 # CHECK-NEXT: ...