Update test to pass .ll to llvm-link and use Inputs.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 30 Oct 2014 20:23:59 +0000 (20:23 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 30 Oct 2014 20:23:59 +0000 (20:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220924 91177308-0d34-0410-b5e6-96231b3b80d8

test/Linker/ConstantGlobals3.ll
test/Linker/Inputs/ConstantGlobals3.ll [new file with mode: 0644]

index 6b4ed24c31cf914ee67bdec81437b58973b3f274..5867ea50088234e1ba41c4bd6d682f9476931c70 100644 (file)
@@ -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 (file)
index 0000000..eeffd3f
--- /dev/null
@@ -0,0 +1 @@
+@X = external constant [1 x i32]