2003-04-26 20:29:09 +00:00
|
|
|
; This one fails because the LLVM runtime is allowing two null pointers of
|
|
|
|
; the same type to be created!
|
|
|
|
|
2011-08-26 20:09:48 +00:00
|
|
|
; RUN: echo {%%T = type i32} | llvm-as > %t.2.bc
|
2009-08-25 15:38:29 +00:00
|
|
|
; RUN: llvm-as %s -o %t.1.bc
|
2007-04-15 18:11:57 +00:00
|
|
|
; RUN: llvm-link %t.1.bc %t.2.bc
|
2003-04-26 20:29:09 +00:00
|
|
|
|
|
|
|
%T = type opaque
|
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
declare %T* @create()
|
2003-04-26 20:29:09 +00:00
|
|
|
|
2008-03-09 08:16:40 +00:00
|
|
|
define void @test() {
|
|
|
|
%X = call %T* @create( ) ; <%T*> [#uses=1]
|
|
|
|
%v = icmp eq %T* %X, null ; <i1> [#uses=0]
|
2003-04-26 20:29:09 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|