; 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 | |
} |