1 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/weak-symbol1.s -o %t.weak.o
2 ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/strong-symbol.s -o %t.strong.o
3 ; RUN: llc -filetype=obj %s -o %t.o
4 ; RUN: wasm-ld -o %t.wasm %t.o %t.strong.o %t.weak.o 2>&1 | FileCheck %s
6 target triple = "wasm32-unknown-unknown"
8 declare i32 @weakFn() local_unnamed_addr
10 define void @_start() local_unnamed_addr {
12 %call = call i32 @weakFn()
16 ; CHECK: warning: function signature mismatch: weakFn
17 ; CHECK-NEXT: >>> defined as () -> i32 in {{.*}}signature-mismatch-weak.ll.tmp.o
18 ; CHECK-NEXT: >>> defined as () -> i64 in {{.*}}signature-mismatch-weak.ll.tmp.strong.o