xref: /llvm-project/llvm/test/ObjectYAML/wasm/invalid_export.yaml (revision 84c6f325840d363c6f3de2091771065234ce4146)
1# RUN: yaml2obj < %s | not obj2yaml 2>&1 | FileCheck %s
2
3--- !WASM
4FileHeader:
5  Version:         0x00000001
6Sections:
7  - Type:            EXPORT
8    Exports:
9      - Name:            invalid_function_index
10        Kind:            FUNCTION
11        Index:           0x00000001
12
13# CHECK: Error reading file: <stdin>: invalid function export
14