Chris Lattner | ac0ec63 | 2003-04-26 20:29:09 +0000 | [diff] [blame] | 1 | ; This one fails because the LLVM runtime is allowing two null pointers of |
2 | ; the same type to be created! | ||||
3 | |||||
John Criswell | e3e7c47 | 2003-09-06 15:15:04 +0000 | [diff] [blame] | 4 | ; RUN: echo "%T = type int" | as > %t.2.bc |
5 | ; RUN: as < %s > %t.1.bc | ||||
6 | ; RUN: link %t.[12].bc | ||||
Chris Lattner | ac0ec63 | 2003-04-26 20:29:09 +0000 | [diff] [blame] | 7 | |
8 | %T = type opaque | ||||
9 | |||||
10 | declare %T* %create() | ||||
11 | |||||
12 | implementation | ||||
13 | |||||
14 | void %test() { | ||||
15 | %X = call %T* %create() | ||||
16 | %v = seteq %T* %X, null | ||||
17 | ret void | ||||
18 | } | ||||
19 |