blob: 54ba05153f49e19f18e55a33da5dac743bab3a83 [file] [log] [blame]
Chris Lattnerac0ec632003-04-26 20:29:09 +00001; This one fails because the LLVM runtime is allowing two null pointers of
2; the same type to be created!
3
Tanya Lattner76806b62008-03-09 08:16:40 +00004; RUN: echo {%T = type i32} | llvm-as > %t.2.bc
Dan Gohmanfea1dd02009-08-25 15:38:29 +00005; RUN: llvm-as %s -o %t.1.bc
Reid Spenceredca80b2007-04-15 18:11:57 +00006; RUN: llvm-link %t.1.bc %t.2.bc
Chris Lattnerac0ec632003-04-26 20:29:09 +00007
8%T = type opaque
9
Tanya Lattner76806b62008-03-09 08:16:40 +000010declare %T* @create()
Chris Lattnerac0ec632003-04-26 20:29:09 +000011
Tanya Lattner76806b62008-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]
Chris Lattnerac0ec632003-04-26 20:29:09 +000015 ret void
16}
17