1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s 2 --- !WASM 3 FileHeader: 4 Version: 0x00000001 5 Sections: 6 - Type: TABLE 7 Tables: 8 - ElemType: ANYFUNC 9 Limits: 10 Flags: [ HAS_MAX ] 11 Initial: 0x00000010 12 Maximum: 0x00000011 13 - Type: ELEM 14 Segments: 15 - Offset: 16 Opcode: I32_CONST 17 Value: 3 18 Functions: 19 - 1 20 - Offset: 21 Opcode: GET_GLOBAL 22 Index: 1 23 Functions: 24 - 4 25 ... 26 # CHECK: --- !WASM 27 # CHECK: FileHeader: 28 # CHECK: Version: 0x00000001 29 # CHECK: Sections: 30 # CHECK: - Type: ELEM 31 # CHECK: Segments: 32 # CHECK: - Offset: 33 # CHECK: Opcode: I32_CONST 34 # CHECK: Value: 3 35 # CHECK: Functions: [ 1 ] 36 # CHECK: - Offset: 37 # CHECK: Opcode: GET_GLOBAL 38 # CHECK: Index: 1 39 # CHECK: Functions: [ 4 ] 40 # CHECK: ... 41