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
5
6target triple = "wasm32-unknown-unknown"
7
8declare i32 @weakFn() local_unnamed_addr
9
10define void @_start() local_unnamed_addr {
11entry:
12  %call = call i32 @weakFn()
13  ret void
14}
15
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
19