mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 14:17:59 +00:00
3f63785cc6
llvm-upgrade because nobody noticed them failing. Update to use new syntax and actually check for the right failure by looking at the error message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48417 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
276 B
LLVM
10 lines
276 B
LLVM
; RUN: not llvm-as < %s |& grep {Invalid getelementptr indices}
|
|
|
|
; This testcase is invalid because we are indexing into a pointer that is
|
|
; contained WITHIN a structure.
|
|
|
|
define void @test({i32, i32*} * %X) {
|
|
getelementptr {i32, i32*} * %X, i32 0, i32 1, i32 0
|
|
ret void
|
|
}
|