2017-03-31 03:44:09 +08:00
|
|
|
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
|
2017-05-10 01:51:38 +08:00
|
|
|
|
2017-03-31 03:44:09 +08:00
|
|
|
--- !WASM
|
|
|
|
FileHeader:
|
|
|
|
Version: 0x00000001
|
|
|
|
Sections:
|
2017-05-10 01:51:38 +08:00
|
|
|
- Type: TYPE
|
|
|
|
Signatures:
|
2018-01-10 05:38:53 +08:00
|
|
|
- Index: 0
|
2018-03-05 20:28:01 +08:00
|
|
|
ReturnType: NORESULT
|
2017-05-10 01:51:38 +08:00
|
|
|
ParamTypes:
|
|
|
|
- Type: FUNCTION
|
|
|
|
FunctionTypes: [ 0, 0, 0 ]
|
2017-03-31 03:44:09 +08:00
|
|
|
- Type: START
|
|
|
|
StartFunction: 1
|
2018-03-05 20:28:01 +08:00
|
|
|
- Type: CODE
|
|
|
|
Functions:
|
|
|
|
- Index: 0
|
|
|
|
Locals:
|
|
|
|
Body: 0B
|
|
|
|
- Index: 1
|
|
|
|
Locals:
|
|
|
|
Body: 0B
|
|
|
|
- Index: 2
|
|
|
|
Locals:
|
|
|
|
Body: 0B
|
2017-03-31 03:44:09 +08:00
|
|
|
...
|
|
|
|
# CHECK: --- !WASM
|
|
|
|
# CHECK: FileHeader:
|
|
|
|
# CHECK: Version: 0x00000001
|
|
|
|
# CHECK: Sections:
|
|
|
|
# CHECK: - Type: START
|
|
|
|
# CHECK: StartFunction: 1
|
|
|
|
# CHECK: ...
|