[llvm-commits] CVS: llvm/test/Regression/Linker/2005-02-12-ConstantGlobals-2.ll 2005-02-12-ConstantGlobals.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 12 11:19:51 PST 2005
Changes in directory llvm/test/Regression/Linker:
2005-02-12-ConstantGlobals-2.ll added (r1.1)
2005-02-12-ConstantGlobals.ll updated: 1.1 -> 1.2
---
Log message:
New test, adjust other test.
---
Diffs of the changes: (+9 -1)
2005-02-12-ConstantGlobals-2.ll | 8 ++++++++
2005-02-12-ConstantGlobals.ll | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
Index: llvm/test/Regression/Linker/2005-02-12-ConstantGlobals-2.ll
diff -c /dev/null llvm/test/Regression/Linker/2005-02-12-ConstantGlobals-2.ll:1.1
*** /dev/null Sat Feb 12 13:19:46 2005
--- llvm/test/Regression/Linker/2005-02-12-ConstantGlobals-2.ll Sat Feb 12 13:19:36 2005
***************
*** 0 ****
--- 1,8 ----
+ ; Test that a prototype can be marked const, and the definition is allowed
+ ; to be nonconst.
+
+ ; RUN: echo "%X = external constant int" | llvm-as > %t.2.bc
+ ; RUN: llvm-as < %s > %t.1.bc
+ ; RUN: llvm-link %t.[12].bc | llvm-dis | grep 'global int 7'
+
+ %X = global int 7
Index: llvm/test/Regression/Linker/2005-02-12-ConstantGlobals.ll
diff -u llvm/test/Regression/Linker/2005-02-12-ConstantGlobals.ll:1.1 llvm/test/Regression/Linker/2005-02-12-ConstantGlobals.ll:1.2
--- llvm/test/Regression/Linker/2005-02-12-ConstantGlobals.ll:1.1 Sat Feb 12 13:14:11 2005
+++ llvm/test/Regression/Linker/2005-02-12-ConstantGlobals.ll Sat Feb 12 13:19:36 2005
@@ -3,6 +3,6 @@
; RUN: echo "%X = global int 7" | llvm-as > %t.2.bc
; RUN: llvm-as < %s > %t.1.bc
-; RUN: llvm-link %t.[12].bc | llvm-dis | grep constant
+; RUN: llvm-link %t.[12].bc | llvm-dis | grep 'global int 7'
%X = external constant int
More information about the llvm-commits
mailing list