Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
[oota-llvm.git] / test / Analysis / DSGraph / 2003-11-02-NodeCollapsing.ll
1 ; This is the same testcase as 2003-06-29-NodeCollapsing2.ll, but it uses the 
2 ; graph checker.
3 ;
4 ; RUN: llvm-as < %s | opt -analyze -datastructure-gc -dsgc-abort-if-any-collapsed
5 ;
6
7 %S = type { double, int }
8 %T = type { double, int, sbyte }
9
10 void %test() {
11         %A = alloca double*
12         %B = alloca %S
13         %C = alloca %T
14         %b = getelementptr %S* %B, long 0, uint 0
15         %c = getelementptr %T* %C, long 0, uint 0
16
17         store double* %b, double** %A
18         store double* %c, double** %A
19         ret void
20 }