1 ; RUN: llvm-link %s -override %S/Inputs/override-with-internal-linkage-2.ll -S | FileCheck %s
2 ; RUN: llvm-link -override %S/Inputs/override-with-internal-linkage-2.ll %s -S | FileCheck %s
4 ; CHECK-LABEL: define i32 @foo
6 ; CHECK-NEXT: %add = add nsw i32 %i, %i
7 ; CHECK-NEXT: ret i32 %add
8 define i32 @foo(i32 %i) {
10 %add = add nsw i32 %i, %i
14 ; CHECK-LABEL: define internal i32 @foo.1
16 ; CHECK-NEXT: ret i32 4
18 ; Function Attrs: nounwind ssp uwtable
19 define i32 @main(i32 %argc, ptr %argv) {
21 %a = call i32 @foo(i32 2)