mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-16 02:16:23 +00:00

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
29 lines
643 B
Plaintext
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
|