[ARM] Add and adjust saturation tests for upcoming qadd changes. NFC
[llvm-core.git] / test / Linker / override-different-linkage.ll
blob19961f2486a027d0155ef9b043feacd44c8691e5
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
6 ; CHECK-NEXT: entry:
7 ; CHECK-NEXT: ret i32 4
8 define weak i32 @foo(i32 %i) {
9 entry:
10   %add = add nsw i32 %i, %i
11   ret i32 %add
14 ; Function Attrs: nounwind ssp uwtable
15 define i32 @main(i32 %argc, i8** %argv) {
16 entry:
17   %a = call i32 @foo(i32 2)
18   ret i32 %a