summaryrefslogtreecommitdiffstats
path: root/llvm/test/ObjectYAML/wasm/function_section.yaml
blob: d31614452952451f6e7875e137313a97980daa54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# RUN: yaml2obj %s | obj2yaml | FileCheck %s
--- !WASM
FileHeader:
  Version:         0x00000001
Sections:
  - Type:            TYPE
    Signatures:
      - Index:           0
        ReturnType:      NORESULT
        ParamTypes:
      - Index:           1
        ReturnType:      NORESULT
        ParamTypes:
          - I32
  - Type:            FUNCTION
    FunctionTypes: [ 1, 0 ]
  - Type:            CODE
    Functions:
      - Index:           0
        Locals:
        Body:            0B
      - Index:           1
        Locals:
        Body:            0B
...
# CHECK: --- !WASM
# CHECK: FileHeader:
# CHECK:   Version:           0x00000001
# CHECK: Sections:
# CHECK:   - Type:            FUNCTION
# CHECK:     FunctionTypes: [ 1, 0 ]
# CHECK: ...
OpenPOWER on IntegriCloud