X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FLinker%2FConstantGlobals1.ll;h=a2bb6fbfba8a803f32f22cce13f2da2fc26ea478;hb=67a6b1c40c04178b52a53623e05a790f517622f1;hp=a5a9ce9ca407cba2d475d48fc769cb1f3f076847;hpb=edca80b5e86363c6e4d5cfeedd6940d991355333;p=oota-llvm.git diff --git a/test/Linker/ConstantGlobals1.ll b/test/Linker/ConstantGlobals1.ll index a5a9ce9ca40..a2bb6fbfba8 100644 --- a/test/Linker/ConstantGlobals1.ll +++ b/test/Linker/ConstantGlobals1.ll @@ -1,8 +1,10 @@ ; Test that appending linkage works correctly when arrays are the same size. -; RUN: echo {%X = constant \[1 x int\] \[int 8\] } | \ -; RUN: llvm-upgrade | llvm-as > %t.2.bc -; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc -; RUN: llvm-link %t.1.bc %t.2.bc | llvm-dis | grep constant +; RUN: echo "@X = constant [1 x i32] [i32 8] " | \ +; 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 + +@X = external global [1 x i32] ; <[1 x i32]*> [#uses=0] -%X = uninitialized global [1 x int]