blob: aec1e99fd8b886ef0fd9a0801e1cfe6f42895994 [file] [log] [blame]
Chris Lattner6235b2a2003-07-25 21:09:11 +00001; This should cause the global node to collapse!!
Tanya Lattner12ff9682004-11-06 20:38:27 +00002; XFAIL: *
Chris Lattner6235b2a2003-07-25 21:09:11 +00003; RUN: analyze %s -datastructure-gc --dsgc-check-flags=test:GAU
4
5%Tree = type { int, %Tree*, %Tree* }
6%T5 = external global %Tree
7
8implementation ; Functions:
9
10void %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