summaryrefslogtreecommitdiff
path: root/test/CodeGen/thinlto_backend.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/thinlto_backend.ll')
-rw-r--r--test/CodeGen/thinlto_backend.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/thinlto_backend.ll b/test/CodeGen/thinlto_backend.ll
index ac0b3b76ef7d..813bb62c1a29 100644
--- a/test/CodeGen/thinlto_backend.ll
+++ b/test/CodeGen/thinlto_backend.ll
@@ -35,8 +35,12 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare void @f2()
+declare i8* @f3()
define void @f1() {
call void @f2()
+ ; Make sure that the backend can handle undefined references.
+ ; Do an indirect call so that the undefined ref shows up in the combined index.
+ call void bitcast (i8*()* @f3 to void()*)()
ret void
}