2003-04-26-NullPtrLinkProblem.ll 385 B

1234567891011121314151617
  1. ; This one fails because the LLVM runtime is allowing two null pointers of
  2. ; the same type to be created!
  3. ; RUN: echo "%%T = type i32" | llvm-as > %t.2.bc
  4. ; RUN: llvm-as %s -o %t.1.bc
  5. ; RUN: llvm-link %t.1.bc %t.2.bc
  6. %T = type opaque
  7. declare %T* @create()
  8. define void @test() {
  9. %X = call %T* @create( ) ; <%T*> [#uses=1]
  10. %v = icmp eq %T* %X, null ; <i1> [#uses=0]
  11. ret void
  12. }