llvm/test/Object/wasm-duplicate-name.test
Sam Clegg d4e08e171e [WebAssembly] Don't allow functions to be named twice
The spec doesn't allow this.

Differential Revision: https://reviews.llvm.org/D41974

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322343 91177308-0d34-0410-b5e6-96231b3b80d8
2018-01-12 02:11:31 +00:00

29 lines
643 B
Plaintext

# RUN: yaml2obj %s | not llvm-objdump -h - 2>&1 | FileCheck %s
--- !WASM
FileHeader:
Version: 0x00000001
Sections:
- Type: TYPE
Signatures:
- Index: 0
ReturnType: I32
ParamTypes:
- I32
- Type: IMPORT
Imports:
- Module: foo
Field: a
Kind: FUNCTION
SigIndex: 0
- Type: CUSTOM
Name: name
FunctionNames:
- Index: 0
Name: a
- Index: 0
Name: b
...
# CHECK: {{.*}}: Function named more than once