linux-packaging-mono/external/llvm/test/Verifier/2002-11-05-GetelementptrPointers.ll
Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +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
}