[llvm-commits] CVS: llvm/test/Regression/Linker/2005-02-12-ConstantGlobals.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 12 11:14:26 PST 2005
Changes in directory llvm/test/Regression/Linker:
2005-02-12-ConstantGlobals.ll added (r1.1)
---
Log message:
Reinstate this test, it is correct after all.
---
Diffs of the changes: (+8 -0)
2005-02-12-ConstantGlobals.ll | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/test/Regression/Linker/2005-02-12-ConstantGlobals.ll
diff -c /dev/null llvm/test/Regression/Linker/2005-02-12-ConstantGlobals.ll:1.1
*** /dev/null Sat Feb 12 13:14:21 2005
--- llvm/test/Regression/Linker/2005-02-12-ConstantGlobals.ll Sat Feb 12 13:14:11 2005
***************
*** 0 ****
--- 1,8 ----
+ ; Test that a prototype can be marked const, and the definition is allowed
+ ; to be nonconst.
+
+ ; 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
+
+ %X = external constant int
More information about the llvm-commits
mailing list