summaryrefslogtreecommitdiffstats
path: root/llvm/test/ObjectYAML/wasm/invalid_export.yaml
blob: a61f8c4cfdee8ce559d0fdb9a4714c8e36dcdf87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# RUN: yaml2obj < %s | not obj2yaml 2>&1 | FileCheck %s

--- !WASM
FileHeader:
  Version:         0x00000001
Sections:
  - Type:            EXPORT
    Exports:
      - Name:            invalid_function_index
        Kind:            FUNCTION
        Index:           0x00000001

# CHECK: Error reading file: <stdin>: Invalid function export
OpenPOWER on IntegriCloud