mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-22 09:29:31 +00:00
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
10 lines
266 B
LLVM
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
|
|
}
|