summaryrefslogtreecommitdiffstats
path: root/llvm/test/ObjectYAML/wasm/invalid_section_order.yaml
blob: 52ad13619622ac1d5d58bd5f02fd7e685048b137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# RUN: not yaml2obj %s -o /dev/null 2>&1 | FileCheck %s

--- !WASM
FileHeader:
  Version:         0x00000001
Sections:
  - Type:            TYPE
    Signatures:
      - Index:           0
        ReturnType:      NORESULT
        ParamTypes:      []
  - Type:            CODE
    Functions:
      - Index:           0
        Locals:          []
        Body:            0B
  # CHECK: Out of order section type: 3
  - Type:            FUNCTION
    FunctionTypes:   [ 0 ]
...
OpenPOWER on IntegriCloud