Xamarin Public Jenkins (auto-signing) 64ac736ec5 Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
2019-04-12 14:10:50 +00:00

21 lines
455 B
LLVM

; RUN: opt -inline -S < %s | FileCheck %s
; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
define i32 @caller() {
; CHECK-LABEL: @caller(
; CHECK-NEXT: %val2 = call i32 @linkonce_callee(i32 42)
; CHECK-NEXT: ret i32 %val2
%val = call i32 @odr_callee()
%val2 = call i32 @linkonce_callee(i32 %val);
ret i32 %val2
}
define linkonce_odr i32 @odr_callee() {
ret i32 42
}
define linkonce i32 @linkonce_callee(i32 %val) {
ret i32 %val
}