blob: ab2cefebb42bf7ba00325b0f2dae3dda0ee47b2c [file] [log] [blame]
Peter Collingbourne00f808f2017-08-10 01:07:44 +00001; 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
5target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
6target triple = "x86_64--fuchsia"
7
8; CHECK: declare void @foo()
9@foo = weak alias void(), void()* @bar
10
11define internal void @bar() {
12 ret void
13}
14
15define void()* @baz() {
16 ret void()* @foo
17}