Chris Lattner | 6235b2a | 2003-07-25 21:09:11 +0000 | [diff] [blame] | 1 | ; This should cause the global node to collapse!! |
Tanya Lattner | 12ff968 | 2004-11-06 20:38:27 +0000 | [diff] [blame] | 2 | ; XFAIL: * |
Chris Lattner | 6235b2a | 2003-07-25 21:09:11 +0000 | [diff] [blame] | 3 | ; RUN: analyze %s -datastructure-gc --dsgc-check-flags=test:GAU |
| 4 | |
| 5 | %Tree = type { int, %Tree*, %Tree* } |
| 6 | %T5 = external global %Tree |
| 7 | |
| 8 | implementation ; Functions: |
| 9 | |
| 10 | void %makeMore(%Tree** %X) { |
| 11 | store %Tree* cast (long add (long cast (%Tree* %T5 to long), long 5) to %Tree*), %Tree** %X |
| 12 | %test = load %Tree** %X |
| 13 | ret void |
| 14 | } |
| 15 | |