brintos

brintos / llvm-project-archived public Read only

0
0
Text · 709 B · bf94d53 Raw
19 lines · plain
1; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/weak-symbol1.s -o %t.weak.o2; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/strong-symbol.s -o %t.strong.o3; RUN: llc -filetype=obj %s -o %t.o4; RUN: wasm-ld -o %t.wasm %t.o %t.strong.o %t.weak.o 2>&1 | FileCheck %s5 6target triple = "wasm32-unknown-unknown"7 8declare i32 @weakFn() local_unnamed_addr9 10define void @_start() local_unnamed_addr {11entry:12  %call = call i32 @weakFn()13  ret void14}15 16; CHECK: warning: function signature mismatch: weakFn17; CHECK-NEXT: >>> defined as () -> i32 in {{.*}}signature-mismatch-weak.ll.tmp.o18; CHECK-NEXT: >>> defined as () -> i64 in {{.*}}signature-mismatch-weak.ll.tmp.strong.o19