aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/2004-04-04-GetElementPtrIndexTypes.ll
blob: ea6996197bd29e58a936d599a7056b68d9115f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-as < %s -o /dev/null -f




int *%t1({ float, int }* %X) {
	%W = getelementptr { float, int }* %X, int 20, uint 1
	%X = getelementptr { float, int }* %X, uint 20, uint 1
	%Y = getelementptr { float, int }* %X, long 20, uint 1
	%Z = getelementptr { float, int }* %X, ulong 20, uint 1
	ret int* %Y
}