linux-packaging-mono/external/llvm-project/llvm/test/Verifier/2002-11-05-GetelementptrPointers.ll
Xamarin Public Jenkins (auto-signing) 468663ddbb Imported Upstream version 6.10.0.49
Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
2020-01-16 16:38:04 +00:00

11 lines
308 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; CHECK: 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*}, {i32, i32*} * %X, i32 0, i32 1, i32 0
ret void
}