New testcase distilled from a problem identified by sumant

llvm-svn: 5964
This commit is contained in:
Chris Lattner 2003-04-26 20:29:09 +00:00
parent 4f6cdbdf81
commit cb2434d38d
1 changed files with 19 additions and 0 deletions

View File

@ -0,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
}