18 lines · plain
1; This one fails because the LLVM runtime is allowing two null pointers of2; the same type to be created!3 4; RUN: echo "%%T = type i32" | llvm-as > %t.2.bc5; RUN: llvm-as %s -o %t.1.bc6; RUN: llvm-link %t.1.bc %t.2.bc7 8%T = type opaque9 10declare ptr @create()11 12define void @test() {13 %X = call ptr @create( ) ; <ptr> [#uses=1]14 %v = icmp eq ptr %X, null ; <i1> [#uses=0]15 ret void16}17 18