llvm-6502/test/Verifier/2002-11-05-GetelementptrPointers.ll
Dan Gohman 041e2eb517 IR support for extractvalue and insertvalue instructions. Also, begin
moving toward making structs and arrays first-class types.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51157 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-15 19:50:34 +00:00

10 lines
266 B
LLVM

; 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
}