2017-03-30 21:44:09 +02:00
|
|
|
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
|
|
|
|
--- !WASM
|
|
|
|
FileHeader:
|
|
|
|
Version: 0x00000001
|
|
|
|
Sections:
|
2018-03-02 15:35:29 +01:00
|
|
|
- Type: TYPE
|
|
|
|
Signatures:
|
|
|
|
- Index: 0
|
|
|
|
ReturnType: NORESULT
|
|
|
|
ParamTypes:
|
|
|
|
- Index: 1
|
|
|
|
ReturnType: NORESULT
|
|
|
|
ParamTypes:
|
|
|
|
- I32
|
2017-03-30 21:44:09 +02:00
|
|
|
- Type: FUNCTION
|
2017-05-09 19:51:38 +02:00
|
|
|
FunctionTypes: [ 1, 0 ]
|
2018-03-05 13:28:01 +01:00
|
|
|
- Type: CODE
|
|
|
|
Functions:
|
|
|
|
- Index: 0
|
|
|
|
Locals:
|
|
|
|
Body: 0B
|
|
|
|
- Index: 1
|
|
|
|
Locals:
|
|
|
|
Body: 0B
|
2017-03-30 21:44:09 +02:00
|
|
|
...
|
|
|
|
# CHECK: --- !WASM
|
|
|
|
# CHECK: FileHeader:
|
|
|
|
# CHECK: Version: 0x00000001
|
|
|
|
# CHECK: Sections:
|
|
|
|
# CHECK: - Type: FUNCTION
|
2017-04-04 08:02:32 +02:00
|
|
|
# CHECK: FunctionTypes: [ 1, 0 ]
|
2017-03-30 21:44:09 +02:00
|
|
|
# CHECK: ...
|