[LLD][COFF] Ignore DEBUG_S_XFGHASH_TYPE/VIRTUAL
[llvm-project.git] / lld / test / wasm / signature-mismatch-export.ll
blob1d5e2a77a6c49cd1df20803646b72090fc41532b
1 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o
2 ; RUN: llc -filetype=obj %s -o %t.main.o
3 ; RUN: wasm-ld --export=ret32 -o %t.wasm %t.main.o %t.ret32.o
4 ; RUN: obj2yaml %t.wasm | FileCheck %s
6 target triple = "wasm32-unknown-unknown"
8 declare i32 @ret32(i32)
10 define void @_start() {
11 entry:
12   %call1 = call i32 @ret32(i32 0)
13   ret void
16 ; CHECK:        - Type:            EXPORT
17 ; CHECK:            - Name:            ret32
18 ; CHECK-NEXT:         Kind:            FUNCTION
19 ; CHECK-NEXT:         Index:           2
21 ; CHECK:        - Type:            CUSTOM
22 ; CHECK-NEXT:     Name:            name
23 ; CHECK-NEXT:     FunctionNames:
24 ; CHECK-NEXT:       - Index:           0
25 ; CHECK-NEXT:         Name:            'signature_mismatch:ret32'
26 ; CHECK-NEXT:       - Index:           1
27 ; CHECK-NEXT:         Name:            _start
28 ; CHECK-NEXT:       - Index:           2
29 ; CHECK-NEXT:         Name:            ret32
30 ; CHECK-NEXT:     GlobalNames:
31 ; CHECK-NEXT:       - Index:           0
32 ; CHECK-NEXT:         Name:            __stack_pointer
33 ; CHECK-NEXT: ...