linux-packaging-mono/external/llvm/test/Verifier/non-integer-gep-index.ll
Xamarin Public Jenkins (auto-signing) 8e12397d70 Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
2018-11-16 08:20:38 +00:00

9 lines
385 B
LLVM

; RUN: not opt -verify %s.bc -disable-output
; Test that verifier checks that gep indexes has correct type
; Specifically we want to check for the following pattern:
; %A1 = alloca i64
; %G = getelementptr i64, i64* %A1, %A1
; IR parser checks for this pattern independently from the verifier, so it's
; impossible to load from .ll file. Hence in this test we use bytecode input.