Chris Lattner | c9f75b5 | 2004-01-11 23:56:03 +0000 | [diff] [blame] | 1 | ; 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 | |
| 8 | void %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 | } |