blob: 99aae03adf6b8f6e77a2f6968732b626f44276a4 [file] [log] [blame]
Chris Lattnera3a388b2003-06-29 18:17:20 +00001; 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
8int %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}