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