summaryrefslogtreecommitdiff
path: root/test/tools/gold/X86/Inputs/thinlto_weak_library1.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/tools/gold/X86/Inputs/thinlto_weak_library1.ll')
-rw-r--r--test/tools/gold/X86/Inputs/thinlto_weak_library1.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/tools/gold/X86/Inputs/thinlto_weak_library1.ll b/test/tools/gold/X86/Inputs/thinlto_weak_library1.ll
new file mode 100644
index 000000000000..319ce6be9b14
--- /dev/null
+++ b/test/tools/gold/X86/Inputs/thinlto_weak_library1.ll
@@ -0,0 +1,17 @@
+; ModuleID = 'thinlto_weak_library1.c'
+source_filename = "thinlto_weak_library1.c"
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+; Function Attrs: nounwind uwtable
+define weak i32 @f() local_unnamed_addr {
+entry:
+ ret i32 1
+}
+
+; Function Attrs: norecurse nounwind readnone uwtable
+define i32 @test1() local_unnamed_addr {
+entry:
+ %call = tail call i32 @f()
+ ret i32 %call
+}