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 | |
Misha Brukman | b6cb66f | 2003-09-15 20:04:28 +0000 | [diff] [blame] | 4 | ; RUN: echo "%T = type int" | llvm-as > %t.2.bc |
Reid Spencer | f231590 | 2006-12-19 02:14:08 +0000 | [diff] [blame^] | 5 | ; RUN: llvm-upgrade < %s | llvm-as -f > %t.1.bc |
Misha Brukman | b6cb66f | 2003-09-15 20:04:28 +0000 | [diff] [blame] | 6 | ; RUN: llvm-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 | |