blob: 04fa0e9e682d3cd16a8960333c79f2ea2f6c4970 [file] [log] [blame]
; RUN: llvm-as %s -o %t1.bc
; RUN: llvm-lto2 run %t1.bc -o %t2.o -r=%t1.bc,caller,plx -r=%t1.bc,extern_func,plx -save-temps
; RUN: llvm-dis %t2.o.0.5.precodegen.bc -o - | FileCheck %s
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-fuchsia"
declare void @extern_func()
; CHECK: define {{.*}} void @caller() {{.*}}{
; CHECK-NEXT: tail call void dso_local_equivalent @extern_func()
; CHECK-NEXT: ret void
; CHECK-NEXT: }
define void @caller() {
call void dso_local_equivalent @extern_func()
ret void
}