1 ; RUN: llvm-as -o %t %s 2 ; RUN: llvm-lto2 run %t -r %t,foo, -r %t,baz,p -o %t2 -save-temps 3 ; RUN: llvm-dis -o - %t2.0.0.preopt.bc | FileCheck %s 4 5 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 6 target triple = "x86_64--fuchsia" 7 8 ; CHECK: declare void @foo() 9 @foo = weak alias void(), void()* @bar 10 11 define internal void @bar() { 12 ret void 13 } 14 15 define void()* @baz() { 16 ret void()* @foo 17 } 18