blob: cd8919df0fae865796c6f945daa340c60f725cb2 [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 Lattnerd52e1b02006-08-27 22:47:14 +00003; RUN: llvm-as < %s | opt -analyze -datastructure-gc --dsgc-check-flags=test:GAU
Chris Lattner6235b2a2003-07-25 21:09:11 +00004
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