blob: c384eadd57fe5e94fe261338ff1c66033b52c3a4 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; This one fails because the LLVM runtime is allowing two null pointers of
2; the same type to be created!
3
Tanya Lattner15b014b2008-03-09 08:16:40 +00004; RUN: echo {%T = type i32} | llvm-as > %t.2.bc
5; RUN: llvm-as < %s -f > %t.1.bc
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006; RUN: llvm-link %t.1.bc %t.2.bc
7
8%T = type opaque
9
Tanya Lattner15b014b2008-03-09 08:16:40 +000010declare %T* @create()
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011
Tanya Lattner15b014b2008-03-09 08:16:40 +000012define void @test() {
13 %X = call %T* @create( ) ; <%T*> [#uses=1]
14 %v = icmp eq %T* %X, null ; <i1> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015 ret void
16}
17