blob: a0760457d8aded64f1fefe7e9c2dcd9f2fb80c30 [file] [log] [blame]
Chris Lattnerac0ec632003-04-26 20:29:09 +00001; This one fails because the LLVM runtime is allowing two null pointers of
2; the same type to be created!
3
Misha Brukmanb6cb66f2003-09-15 20:04:28 +00004; RUN: echo "%T = type int" | llvm-as > %t.2.bc
Reid Spencerf2315902006-12-19 02:14:08 +00005; RUN: llvm-upgrade < %s | llvm-as -f > %t.1.bc
Misha Brukmanb6cb66f2003-09-15 20:04:28 +00006; RUN: llvm-link %t.[12].bc
Chris Lattnerac0ec632003-04-26 20:29:09 +00007
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