blob: 029bce264a592adb038342a19ee870db3483205e [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; 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 int} | llvm-upgrade | llvm-as > %t.2.bc
5; RUN: llvm-upgrade < %s | llvm-as -f > %t.1.bc
6; RUN: llvm-link %t.1.bc %t.2.bc
7
8%T = type opaque
9
10declare %T* %create()
11
12implementation
13
14void %test() {
15 %X = call %T* %create()
16 %v = seteq %T* %X, null
17 ret void
18}
19