New, smaller testcase
[oota-llvm.git] / test / Analysis / DSGraph / 2003-06-29-NodeCollapsing2.ll
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 }