1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
65 # CHECK-NEXT: FileHeader:
66 # CHECK-NEXT: Version: 0x1
67 # CHECK-NEXT: Sections:
68 # CHECK-NEXT: - Type: TYPE
69 # CHECK-NEXT: Signatures:
70 # CHECK-NEXT: - Index: 0
71 # CHECK-NEXT: ParamTypes: []
72 # CHECK-NEXT: ReturnTypes: []
73 # CHECK-NEXT: - Type: IMPORT
74 # CHECK-NEXT: Imports:
75 # CHECK-NEXT: - Module: env
76 # CHECK-NEXT: Field: table_a
77 # CHECK-NEXT: Kind: TABLE
79 # CHECK-NEXT: Index: 0
80 # CHECK-NEXT: ElemType: FUNCREF
82 # CHECK-NEXT: Minimum: 0x0
83 # CHECK-NEXT: - Type: FUNCTION
84 # CHECK-NEXT: FunctionTypes: [ 0 ]
85 # CHECK-NEXT: - Type: TABLE
87 # CHECK-NEXT: - Index: 1
88 # CHECK-NEXT: ElemType: FUNCREF
90 # CHECK-NEXT: Minimum: 0x0
91 # CHECK-NEXT: - Index: 2
92 # CHECK-NEXT: ElemType: EXTERNREF
94 # CHECK-NEXT: Minimum: 0x0
95 # CHECK-NEXT: - Index: 3
96 # CHECK-NEXT: ElemType: FUNCREF
98 # CHECK-NEXT: Flags: [ HAS_MAX ]
99 # CHECK-NEXT: Minimum: 0x3
100 # CHECK-NEXT: Maximum: 0x3
101 # CHECK-NEXT: - Type: EXPORT
102 # CHECK-NEXT: Exports:
103 # CHECK-NEXT: - Name: table_b
104 # CHECK-NEXT: Kind: TABLE
105 # CHECK-NEXT: Index: 1
106 # CHECK-NEXT: - Name: table_c
107 # CHECK-NEXT: Kind: TABLE
108 # CHECK-NEXT: Index: 2
109 # CHECK-NEXT: - Type: ELEM
110 # CHECK-NEXT: Segments:
111 # CHECK-NEXT: - Flags: 2
112 # CHECK-NEXT: TableNumber: 3
113 # CHECK-NEXT: ElemKind: FUNCREF
114 # CHECK-NEXT: Offset:
115 # CHECK-NEXT: Opcode: I32_CONST
116 # CHECK-NEXT: Value: 1
117 # CHECK-NEXT: Functions: [ 0, 0 ]
118 # CHECK-NEXT: - Type: CODE
119 # CHECK-NEXT: Functions:
120 # CHECK-NEXT: - Index: 0
121 # CHECK-NEXT: Locals: []
122 # CHECK-NEXT: Body: 0B