[llvm-commits] CVS: llvm/test/Regression/Linker/ConstantGlobals1.ll ConstantGlobals2.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 4 19:12:33 PDT 2004
Changes in directory llvm/test/Regression/Linker:
ConstantGlobals1.ll added (r1.1)
ConstantGlobals2.ll added (r1.1)
---
Log message:
Testcase to ensure that the 'constant' flag follows the definition when there
is a question.
---
Diffs of the changes: (+14 -0)
Index: llvm/test/Regression/Linker/ConstantGlobals1.ll
diff -c /dev/null llvm/test/Regression/Linker/ConstantGlobals1.ll:1.1
*** /dev/null Mon Oct 4 21:12:30 2004
--- llvm/test/Regression/Linker/ConstantGlobals1.ll Mon Oct 4 21:12:20 2004
***************
*** 0 ****
--- 1,7 ----
+ ; Test that appending linkage works correctly when arrays are the same size.
+
+ ; RUN: echo "%X = constant [1x int] [int 8]" | llvm-as > %t.2.bc
+ ; RUN: llvm-as < %s > %t.1.bc
+ ; RUN: llvm-link %t.[12].bc | llvm-dis | grep constant
+
+ %X = uninitialized global [1 x int]
Index: llvm/test/Regression/Linker/ConstantGlobals2.ll
diff -c /dev/null llvm/test/Regression/Linker/ConstantGlobals2.ll:1.1
*** /dev/null Mon Oct 4 21:12:33 2004
--- llvm/test/Regression/Linker/ConstantGlobals2.ll Mon Oct 4 21:12:20 2004
***************
*** 0 ****
--- 1,7 ----
+ ; Test that appending linkage works correctly when arrays are the same size.
+
+ ; RUN: echo "%X = uninitialized global [1x int]" | llvm-as > %t.2.bc
+ ; RUN: llvm-as < %s > %t.1.bc
+ ; RUN: llvm-link %t.[12].bc | llvm-dis | grep constant
+
+ %X = constant [1 x int] [ int 12 ]
More information about the llvm-commits
mailing list