2017-03-31 03:44:09 +08:00
|
|
|
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
|
|
|
|
--- !WASM
|
|
|
|
FileHeader:
|
|
|
|
Version: 0x00000001
|
|
|
|
Sections:
|
|
|
|
- Type: TABLE
|
|
|
|
Tables:
|
|
|
|
- ElemType: ANYFUNC
|
|
|
|
Limits:
|
2017-12-14 06:02:25 +08:00
|
|
|
Flags: [ HAS_MAX ]
|
2017-03-31 03:44:09 +08:00
|
|
|
Initial: 0x00000010
|
|
|
|
Maximum: 0x00000011
|
|
|
|
- Type: ELEM
|
|
|
|
Segments:
|
|
|
|
- Offset:
|
|
|
|
Opcode: I32_CONST
|
|
|
|
Value: 3
|
|
|
|
Functions:
|
|
|
|
- 1
|
|
|
|
- Offset:
|
2017-04-26 01:11:56 +08:00
|
|
|
Opcode: GET_GLOBAL
|
|
|
|
Index: 1
|
2017-03-31 03:44:09 +08:00
|
|
|
Functions:
|
|
|
|
- 4
|
|
|
|
...
|
|
|
|
# CHECK: --- !WASM
|
|
|
|
# CHECK: FileHeader:
|
|
|
|
# CHECK: Version: 0x00000001
|
|
|
|
# CHECK: Sections:
|
|
|
|
# CHECK: - Type: ELEM
|
|
|
|
# CHECK: Segments:
|
|
|
|
# CHECK: - Offset:
|
|
|
|
# CHECK: Opcode: I32_CONST
|
|
|
|
# CHECK: Value: 3
|
2017-04-04 14:02:32 +08:00
|
|
|
# CHECK: Functions: [ 1 ]
|
2017-03-31 03:44:09 +08:00
|
|
|
# CHECK: - Offset:
|
2017-04-26 01:11:56 +08:00
|
|
|
# CHECK: Opcode: GET_GLOBAL
|
|
|
|
# CHECK: Index: 1
|
2017-04-04 14:02:32 +08:00
|
|
|
# CHECK: Functions: [ 4 ]
|
2017-03-31 03:44:09 +08:00
|
|
|
# CHECK: ...
|