Mark that the return is using EAX so that we don't use it for some other
[llvm.git] / test / Linker / 2003-04-26-NullPtrLinkProblem.ll
blob54ba05153f49e19f18e55a33da5dac743bab3a83
1 ; This one fails because the LLVM runtime is allowing two null pointers of
2 ; the same type to be created!
4 ; RUN: echo {%T = type i32} | llvm-as > %t.2.bc
5 ; RUN: llvm-as %s -o %t.1.bc
6 ; RUN: llvm-link %t.1.bc %t.2.bc
8 %T = type opaque
10 declare %T* @create()
12 define void @test() {
13         %X = call %T* @create( )                ; <%T*> [#uses=1]
14         %v = icmp eq %T* %X, null               ; <i1> [#uses=0]
15         ret void