[llvm-commits] CVS: llvm/test/Regression/Linker/2003-04-26-NullPtrLinkProblem.ll

Chris Lattner lattner at cs.uiuc.edu
Sat Apr 26 15:30:01 PDT 2003


Changes in directory llvm/test/Regression/Linker:

2003-04-26-NullPtrLinkProblem.ll added (r1.1)

---
Log message:

New testcase distilled from a problem identified by sumant


---
Diffs of the changes:

Index: llvm/test/Regression/Linker/2003-04-26-NullPtrLinkProblem.ll
diff -c /dev/null llvm/test/Regression/Linker/2003-04-26-NullPtrLinkProblem.ll:1.1
*** /dev/null	Sat Apr 26 15:29:19 2003
--- llvm/test/Regression/Linker/2003-04-26-NullPtrLinkProblem.ll	Sat Apr 26 15:29:09 2003
***************
*** 0 ****
--- 1,19 ----
+ ; This one fails because the LLVM runtime is allowing two null pointers of
+ ; the same type to be created!
+ 
+ ; RUN: echo "%T = type int" | as > Output/%s.2.bc
+ ; RUN: as < %s > Output/%s.1.bc
+ ; RUN: link Output/%s.[12].bc
+ 
+ %T = type opaque
+ 
+ declare %T* %create()
+ 
+ implementation
+ 
+ void %test() {
+ 	%X = call %T* %create()
+ 	%v = seteq %T* %X, null
+ 	ret void
+ }
+ 





More information about the llvm-commits mailing list