llvm/test/ObjectYAML/wasm/invalid_section_order.yaml
raw| 1 | # RUN: not yaml2obj %s -o /dev/null 2>&1 | FileCheck %s |
| 2 | |
| 3 | --- !WASM |
| 4 | FileHeader: |
| 5 | Version: 0x00000001 |
| 6 | Sections: |
| 7 | - Type: TYPE |
| 8 | Signatures: |
| 9 | - Index: 0 |
| 10 | ParamTypes: [] |
| 11 | ReturnTypes: [] |
| 12 | - Type: CODE |
| 13 | Functions: |
| 14 | - Index: 0 |
| 15 | Locals: [] |
| 16 | Body: 0B |
| 17 | # CHECK: yaml2obj: error: out of order section type: FUNCTION |
| 18 | - Type: FUNCTION |
| 19 | FunctionTypes: [ 0 ] |
| 20 | ... |