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