xref: /llvm-project/llvm/test/Linker/2003-04-26-NullPtrLinkProblem.ll (revision f2e868c566107eb2f54e3e6033199297ba11e2d9)
1; This one fails because the LLVM runtime is allowing two null pointers of
2; the same type to be created!
3
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
7
8%T = type opaque
9
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 void
16}
17
18