Home | History | Annotate | Download | only in Inline
      1 ; RUN: opt -inline -S < %s | FileCheck %s
      2 
      3 define i32 @caller() {
      4 ; CHECK-LABEL: @caller(
      5 ; CHECK-NEXT:  %val2 = call i32 @linkonce_callee(i32 42)
      6 ; CHECK-NEXT:  ret i32 %val2
      7 
      8   %val = call i32 @odr_callee()
      9   %val2 = call i32 @linkonce_callee(i32 %val);
     10   ret i32 %val2
     11 }
     12 
     13 define linkonce_odr i32 @odr_callee() {
     14   ret i32 42
     15 }
     16 
     17 define linkonce i32 @linkonce_callee(i32 %val) {
     18   ret i32 %val
     19 }
     20