[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / ObjectYAML / wasm / event_section.yaml
blob5c64cc815529f865e8796a8148734ac44c0c4209
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
3 --- !WASM
4 FileHeader:
5   Version:         0x00000001
6 Sections:
7   - Type:            TYPE
8     Signatures:
9       - Index:           0
10         ParamTypes:
11           - I32
12         ReturnTypes:
13           - I32
14       - Index:           1
15         ParamTypes:
16           - I32
17         ReturnTypes:      []
18   - Type:            FUNCTION
19     FunctionTypes:   [ 0 ]
20   - Type:            EVENT
21     Events:
22       - Index:           0
23         Attribute:       0
24         SigIndex:        1
25   - Type:            CODE
26     Relocations:
27       - Type:            R_WASM_EVENT_INDEX_LEB
28         Index:           1
29         Offset:          0x00000006
30     Functions:
31       - Index:           0
32         Locals:
33         Body:            200008808080800041000B
34   - Type:            CUSTOM
35     Name:            linking
36     Version:         2
37     SymbolTable:
38       - Index:           0
39         Kind:            FUNCTION
40         Name:            test_throw0
41         Flags:           [  ]
42         Function:        0
43       - Index:           1
44         Kind:            EVENT
45         Name:            __cpp_exception
46         Flags:           [ BINDING_WEAK ]
47         Event:           0
48 ...
50 # CHECK:      --- !WASM
51 # CHECK-NEXT: FileHeader:
52 # CHECK-NEXT:   Version:         0x00000001
53 # CHECK-NEXT: Sections:
54 # CHECK-NEXT:   - Type:            TYPE
55 # CHECK-NEXT:     Signatures:
56 # CHECK-NEXT:       - Index:           0
57 # CHECK-NEXT:         ParamTypes:
58 # CHECK-NEXT:           - I32
59 # CHECK-NEXT:         ReturnTypes:
60 # CHECK-NEXT:           - I32
61 # CHECK-NEXT:       - Index:           1
62 # CHECK-NEXT:         ParamTypes:
63 # CHECK-NEXT:           - I32
64 # CHECK-NEXT:         ReturnTypes:     []
65 # CHECK-NEXT:   - Type:            FUNCTION
66 # CHECK-NEXT:     FunctionTypes:   [ 0 ]
67 # CHECK-NEXT:   - Type:            EVENT
68 # CHECK-NEXT:     Events:
69 # CHECK-NEXT:       - Index:           0
70 # CHECK-NEXT:         Attribute:       0
71 # CHECK-NEXT:         SigIndex:        1
72 # CHECK-NEXT:   - Type:            CODE
73 # CHECK-NEXT:     Relocations:
74 # CHECK-NEXT:       - Type:            R_WASM_EVENT_INDEX_LEB
75 # CHECK-NEXT:         Index:           1
76 # CHECK-NEXT:         Offset:          0x00000006
77 # CHECK-NEXT:     Functions:
78 # CHECK-NEXT:       - Index:           0
79 # CHECK-NEXT:         Locals:
80 # CHECK-NEXT:         Body:            200008808080800041000B
81 # CHECK-NEXT:   - Type:            CUSTOM
82 # CHECK-NEXT:     Name:            linking
83 # CHECK-NEXT:     Version:         2
84 # CHECK-NEXT:     SymbolTable:
85 # CHECK-NEXT:       - Index:           0
86 # CHECK-NEXT:         Kind:            FUNCTION
87 # CHECK-NEXT:         Name:            test_throw0
88 # CHECK-NEXT:         Flags:           [  ]
89 # CHECK-NEXT:         Function:        0
90 # CHECK-NEXT:       - Index:           1
91 # CHECK-NEXT:         Kind:            EVENT
92 # CHECK-NEXT:         Name:            __cpp_exception
93 # CHECK-NEXT:         Flags:           [ BINDING_WEAK ]
94 # CHECK-NEXT:         Event:           0