linux-packaging-mono/external/llvm/test/LTO/Resolution/X86/function-alias-non-prevailing.ll
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

18 lines
398 B
LLVM

; RUN: llvm-as -o %t %s
; RUN: llvm-lto2 run %t -r %t,foo, -r %t,baz,p -o %t2 -save-temps
; RUN: llvm-dis -o - %t2.0.0.preopt.bc | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64--fuchsia"
; CHECK: declare void @foo()
@foo = weak alias void(), void()* @bar
define internal void @bar() {
ret void
}
define void()* @baz() {
ret void()* @foo
}