xref: /llvm-project/llvm/test/tools/gold/X86/Inputs/thinlto_weak_resolution.ll (revision a273c40820f78d8b08e411897eee84dbda983488)
1target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
2target triple = "x86_64-unknown-linux-gnu"
3
4; Alias are not optimized
5@linkonceodralias = linkonce_odr alias void (), ptr @linkonceodrfuncwithalias
6
7; Alias are not optimized
8@linkoncealias = linkonce alias void (), ptr @linkoncefuncwithalias
9
10; Function with an alias are not optimized
11define linkonce_odr void @linkonceodrfuncwithalias() #0 {
12entry:
13  ret void
14}
15
16; Function with an alias are not optimized
17define linkonce void @linkoncefuncwithalias() #0 {
18entry:
19  ret void
20}
21
22define linkonce_odr void @linkonceodrfunc() #0 {
23entry:
24  ret void
25}
26define linkonce void @linkoncefunc() #0 {
27entry:
28  ret void
29}
30define weak_odr void @weakodrfunc() #0 {
31entry:
32  ret void
33}
34define weak void @weakfunc() #0 {
35entry:
36  ret void
37}
38
39