summaryrefslogtreecommitdiffstats
path: root/llvm/test/Verifier/2002-11-05-GetelementptrPointers.ll
blob: c762b2a353096a4e67863b92b82ac948c2bf42ba (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-as < %s

; This testcase was previously considered invalid for indexing into a pointer
; that is contained WITHIN a structure, but this is now valid.

define void @test({i32, i32*} * %X) {
	getelementptr {i32, i32*} * %X, i32 0, i32 1, i32 0
	ret void
}
OpenPOWER on IntegriCloud