Chris Lattner | a3a388b | 2003-06-29 18:17:20 +0000 | [diff] [blame] | 1 | ; This is the same testcase as 2003-06-29-NodeCollapsing2.ll, but it uses the |
| 2 | ; graph checker. |
| 3 | ; |
| 4 | ; RUN: analyze %s -datastructure-gc -dsgc-abort-if-any-collapsed |
| 5 | ; |
| 6 | %T = type { int} |
| 7 | |
| 8 | int %main() { |
| 9 | %A = alloca %T |
| 10 | %B = alloca { %T } |
| 11 | %C = alloca %T* |
| 12 | %Bp = getelementptr { %T }* %B, long 0, ubyte 0 |
| 13 | %Ap = getelementptr %T* %A, long 0, ubyte 0 |
| 14 | |
| 15 | store %T* %A, %T** %C |
| 16 | store %T* %Bp, %T** %C ; This store was causing merging to happen! |
| 17 | ret int 0 |
| 18 | } |