summaryrefslogtreecommitdiff
path: root/test/Verifier/2002-11-05-GetelementptrPointers.ll
blob: d1e516953ac38d58555e627c71659b87ed6e8799 (plain)
1
2
3
4
5
6
7
8
9
; RUN: not llvm-as -f %s -o /dev/null

; This testcase is invalid because we are indexing into a pointer that is 
; contained WITHIN a structure.

void %test({int, int*} * %X) {
	getelementptr {int, int*} * %X, long 0, uint 1, long 0
	ret void
}