From 0a5fb09b599c1bdea3cd11168bb8f4ff4040316e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 8 May 2017 17:13:11 +0000 Subject: Vendor import of clang trunk r302418: https://llvm.org/svn/llvm-project/cfe/trunk@302418 --- test/CodeGen/thinlto_backend.ll | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/CodeGen/thinlto_backend.ll') 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 } -- cgit v1.3