diff --git a/test/Linker/ConstantGlobals3.ll b/test/Linker/ConstantGlobals3.ll index 6b4ed24c31c..5867ea50088 100644 --- a/test/Linker/ConstantGlobals3.ll +++ b/test/Linker/ConstantGlobals3.ll @@ -1,9 +1,6 @@ -; Test that appending linkage works correctly when arrays are the same size. +; RUN: llvm-link %s %S/Inputs/ConstantGlobals3.ll -S | FileCheck %s +; RUN: llvm-link %S/Inputs/ConstantGlobals3.ll %s -S | FileCheck %s -; RUN: echo "@X = external constant [1 x i32] " | \ -; RUN: llvm-as > %t.2.bc -; RUN: llvm-as < %s > %t.1.bc -; RUN: llvm-link %t.1.bc %t.2.bc -S | FileCheck %s -; CHECK: constant +; CHECK: @X = external constant [1 x i32] -@X = external global [1 x i32] ; <[1 x i32]*> [#uses=0] +@X = external global [1 x i32] diff --git a/test/Linker/Inputs/ConstantGlobals3.ll b/test/Linker/Inputs/ConstantGlobals3.ll new file mode 100644 index 00000000000..eeffd3f014d --- /dev/null +++ b/test/Linker/Inputs/ConstantGlobals3.ll @@ -0,0 +1 @@ +@X = external constant [1 x i32]