blob: 4d2b02cc9ed33e742c2171bc4070259b01b938ad [file] [log] [blame]
; RUN: llc -filetype=obj %p/Inputs/weak-symbol1.ll -o %t.weak.o
; RUN: llc -filetype=obj %p/Inputs/strong-symbol.ll -o %t.strong.o
; RUN: llc -filetype=obj %s -o %t.o
; RUN: wasm-ld -o %t.wasm %t.o %t.strong.o %t.weak.o 2>&1 | FileCheck %s
target triple = "wasm32-unknown-unknown"
declare i32 @weakFn() local_unnamed_addr
define void @_start() local_unnamed_addr {
entry:
%call = call i32 @weakFn()
ret void
}
; CHECK: warning: function signature mismatch: weakFn
; CHECK-NEXT: >>> defined as () -> i32 in {{.*}}signature-mismatch-weak.ll.tmp.o
; CHECK-NEXT: >>> defined as () -> i64 in {{.*}}signature-mismatch-weak.ll.tmp.strong.o