git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217445
91177308-0d34-0410-b5e6-
96231b3b80d8
if (DestIsDeclaration) {
LinkFromSrc = true;
LT = Src->getLinkage();
+ } else {
+ LinkFromSrc = false;
+ LT = Dest->getLinkage();
}
} else if (Dest->hasExternalWeakLinkage()) {
// If the Dest is weak, use the source linkage.
@test1_a = weak global i8 1
+
+@test2_a = external dllimport global i8
; RUN: llvm-link %p/Inputs/linkage2.ll %s -S | FileCheck %s
@test1_a = common global i8 0
-
; CHECK: @test1_a = common global i8 0
+
+@test2_a = global i8 0
+; CHECK: @test2_a = global i8 0