Home | History | Annotate | Download | only in wasm
      1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
      2 --- !WASM
      3 FileHeader:
      4   Version:         0x00000001
      5 Sections:
      6   - Type:            TYPE
      7     Signatures:
      8       - Index:           0
      9         ReturnType:      NORESULT
     10         ParamTypes:
     11       - Index:           1
     12         ReturnType:      NORESULT
     13         ParamTypes:
     14           - I32
     15   - Type:            FUNCTION
     16     FunctionTypes: [ 1, 0 ]
     17   - Type:            CODE
     18     Functions:
     19       - Index:           0
     20         Locals:
     21         Body:            0B
     22       - Index:           1
     23         Locals:
     24         Body:            0B
     25 ...
     26 # CHECK: --- !WASM
     27 # CHECK: FileHeader:
     28 # CHECK:   Version:           0x00000001
     29 # CHECK: Sections:
     30 # CHECK:   - Type:            FUNCTION
     31 # CHECK:     FunctionTypes: [ 1, 0 ]
     32 # CHECK: ...
     33