1*cee313d2SEric Christopher; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s
2*cee313d2SEric Christopher; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=CHECK1 %s
3*cee313d2SEric Christopher
4*cee313d2SEric Christophertarget triple = "x86_64-unknown-linux-gnu"
5*cee313d2SEric Christopher
6*cee313d2SEric Christopherdefine hidden void @Func() !type !0 {
7*cee313d2SEric Christopher  ret void
8*cee313d2SEric Christopher}
9*cee313d2SEric Christopher
10*cee313d2SEric Christopher; CHECK1: !aliases = !{![[A1:[0-9]+]], ![[A2:[0-9]+]], ![[A3:[0-9]+]]}
11*cee313d2SEric Christopher
12*cee313d2SEric Christopher; CHECK1: ![[A1]] = !{!"Alias", !"Func", i8 1, i8 0}
13*cee313d2SEric Christopher; CHECK1: ![[A2]] = !{!"Hidden_Alias", !"Func", i8 1, i8 0}
14*cee313d2SEric Christopher; CHECK1: ![[A3]] = !{!"Weak_Alias", !"Func", i8 0, i8 1}
15*cee313d2SEric Christopher@Alias = hidden alias void (), void ()* @Func
16*cee313d2SEric Christopher@Hidden_Alias = hidden alias void (), void ()* @Func
17*cee313d2SEric Christopher@Weak_Alias = weak alias void (), void ()* @Func
18*cee313d2SEric Christopher
19*cee313d2SEric Christopher@Variable = global i32 0
20*cee313d2SEric Christopher
21*cee313d2SEric Christopher; Only generate summary alias information for aliases to functions
22*cee313d2SEric Christopher; CHECK1-NOT: Variable_Alias
23*cee313d2SEric Christopher@Variable_Alias = alias i32, i32* @Variable
24*cee313d2SEric Christopher
25*cee313d2SEric Christopher!0 = !{i64 0, !"_ZTSFvvE"}
26