blob: 6f7f06a9b2481c36ea7e94a49f71381d52442073 [file] [log] [blame]
Chris Lattnerc9f75b52004-01-11 23:56:03 +00001; RUN: llvm-as < %s | llvm-dis | not grep 'getelementptr.*getelementptr'
2
3 %struct.TUVVertex = type { short, short, short, short }
4 %struct.TTriangleItem = type { sbyte*, sbyte*, [3 x %struct.TUVVertex] }
5
6%data_triangleItems = internal constant [2908 x %struct.TTriangleItem] zeroinitializer
7
8void %foo() {
9 store short 0, short* getelementptr ([3 x %struct.TUVVertex]* getelementptr ([2908 x %struct.TTriangleItem]* %data_triangleItems, long 0, long 0, ubyte 2), long 0, long 0, ubyte 0)
10 ret void
11}