1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
26 - Type: R_WASM_EVENT_INDEX_LEB
32 Body: 200008808080800041000B
45 Flags: [ BINDING_WEAK ]
50 # CHECK-NEXT: FileHeader:
51 # CHECK-NEXT: Version: 0x00000001
52 # CHECK-NEXT: Sections:
53 # CHECK-NEXT: - Type: TYPE
54 # CHECK-NEXT: Signatures:
55 # CHECK-NEXT: - Index: 0
56 # CHECK-NEXT: ReturnType: I32
57 # CHECK-NEXT: ParamTypes:
59 # CHECK-NEXT: - Index: 1
60 # CHECK-NEXT: ReturnType: NORESULT
61 # CHECK-NEXT: ParamTypes:
63 # CHECK-NEXT: - Type: FUNCTION
64 # CHECK-NEXT: FunctionTypes: [ 0 ]
65 # CHECK-NEXT: - Type: EVENT
67 # CHECK-NEXT: - Index: 0
68 # CHECK-NEXT: Attribute: 0
69 # CHECK-NEXT: SigIndex: 1
70 # CHECK-NEXT: - Type: CODE
71 # CHECK-NEXT: Relocations:
72 # CHECK-NEXT: - Type: R_WASM_EVENT_INDEX_LEB
73 # CHECK-NEXT: Index: 1
74 # CHECK-NEXT: Offset: 0x00000006
75 # CHECK-NEXT: Functions:
76 # CHECK-NEXT: - Index: 0
78 # CHECK-NEXT: Body: 200008808080800041000B
79 # CHECK-NEXT: - Type: CUSTOM
80 # CHECK-NEXT: Name: linking
81 # CHECK-NEXT: Version: 2
82 # CHECK-NEXT: SymbolTable:
83 # CHECK-NEXT: - Index: 0
84 # CHECK-NEXT: Kind: FUNCTION
85 # CHECK-NEXT: Name: test_throw0
86 # CHECK-NEXT: Flags: [ ]
87 # CHECK-NEXT: Function: 0
88 # CHECK-NEXT: - Index: 1
89 # CHECK-NEXT: Kind: EVENT
90 # CHECK-NEXT: Name: __cpp_exception
91 # CHECK-NEXT: Flags: [ BINDING_WEAK ]
92 # CHECK-NEXT: Event: 0