1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
27 - Type: R_WASM_EVENT_INDEX_LEB
33 Body: 200008808080800041000B
46 Flags: [ BINDING_WEAK ]
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:
59 # CHECK-NEXT: ReturnTypes:
61 # CHECK-NEXT: - Index: 1
62 # CHECK-NEXT: ParamTypes:
64 # CHECK-NEXT: ReturnTypes: []
65 # CHECK-NEXT: - Type: FUNCTION
66 # CHECK-NEXT: FunctionTypes: [ 0 ]
67 # CHECK-NEXT: - Type: EVENT
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
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