Home | History | Annotate | Download | only in Linker
      1 ; RUN: llvm-link %s -override %S/Inputs/override.ll -S | FileCheck %s
      2 ; RUN: llvm-link -override %S/Inputs/override.ll %s -S | FileCheck %s
      3 
      4 
      5 ; CHECK-LABEL: define i32 @foo
      6 ; CHECK-NEXT: entry:
      7 ; CHECK-NEXT: ret i32 4
      8 define i32 @foo(i32 %i) {
      9 entry:
     10   %add = add nsw i32 %i, %i
     11   ret i32 %add
     12 }
     13 
     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
     19 }
     20