From: Sean Silva Date: Fri, 11 Mar 2016 01:10:37 +0000 (+0000) Subject: [lto] Add a useful test case. X-Git-Tag: llvmorg-3.9.0-rc1~12021 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1069239a0260bf9998a6da15a6d10778274ba45;p=platform%2Fupstream%2Fllvm.git [lto] Add a useful test case. This is reduced from an issue found in practice. The original version of D18012 needed another patch to handle this, but it now works since we are using a more correct GV->hasAppendingLinkage() check that Rafael suggested. This is what remains of that other patch. llvm-svn: 263181 --- diff --git a/lld/test/ELF/lto/linkage.ll b/lld/test/ELF/lto/linkage.ll index f0f4610..ee1c70c 100644 --- a/lld/test/ELF/lto/linkage.ll +++ b/lld/test/ELF/lto/linkage.ll @@ -13,3 +13,6 @@ target triple = "x86_64-unknown-linux-gnu" define internal void @ctor() { ret void } + +; Should not try to merge a declaration into the combined module. +declare i32 @llvm.ctpop.i32(i32)