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