Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
[oota-llvm.git] / test / Transforms / ScalarRepl / 2003-10-29-ArrayProblem.ll
1 ; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | grep alloca | grep '{'
2 implementation   ; Functions:
3
4 declare int %.callback_1(sbyte*)
5 declare void %.iter_2(int (sbyte*)*, sbyte*)
6
7 int %main() {
8         %d = alloca { [80 x sbyte], int, uint }
9         %tmp.0 = getelementptr { [80 x sbyte], int, uint }* %d, long 0, uint 2
10         store uint 0, uint* %tmp.0
11         %tmp.1 = getelementptr { [80 x sbyte], int, uint }* %d, long 0, uint 0, long 0
12         call void %.iter_2( int (sbyte*)* %.callback_1, sbyte* %tmp.1 )
13         ret int 0
14 }