1
; RUN: llvm-link %s -override %S/Inputs/override-different-linkage.ll -S | FileCheck %s
2
; RUN: llvm-link -override %S/Inputs/override-different-linkage.ll %s -S | FileCheck %s
5
; CHECK-LABEL: define linkonce i32 @foo
7
; CHECK-NEXT: ret i32 4
8
define weak i32 @foo(i32 %i) {
10
%add = add nsw i32 %i, %i
14
; Function Attrs: nounwind ssp uwtable
15
define i32 @main(i32 %argc, i8** %argv) {
17
%a = call i32 @foo(i32 2)