[llvm-commits] CVS: llvm/test/Regression/Linker/2005-02-11-ConstantGlobals.ll

Chris Lattner lattner at cs.uiuc.edu
Fri Feb 11 15:08:50 PST 2005



Changes in directory llvm/test/Regression/Linker:

2005-02-11-ConstantGlobals.ll added (r1.1)
---
Log message:

New testcase that manyoso found compiling QT 4.0.


---
Diffs of the changes:  (+8 -0)

 2005-02-11-ConstantGlobals.ll |    8 ++++++++
 1 files changed, 8 insertions(+)


Index: llvm/test/Regression/Linker/2005-02-11-ConstantGlobals.ll
diff -c /dev/null llvm/test/Regression/Linker/2005-02-11-ConstantGlobals.ll:1.1
*** /dev/null	Fri Feb 11 17:08:44 2005
--- llvm/test/Regression/Linker/2005-02-11-ConstantGlobals.ll	Fri Feb 11 17:08:34 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