From: Rafael Espindola Date: Thu, 30 Oct 2014 20:23:59 +0000 (+0000) Subject: Update test to pass .ll to llvm-link and use Inputs. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=6c5d2989be23a9c071314c3c001563751dd2be25 Update test to pass .ll to llvm-link and use Inputs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220924 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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]