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