blob: d39039964b3b388a53051d4fb0fc5de07c94e75c [file] [edit]
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; Test the case of an invalid pointee type on a constant GEP
; CHECK: invalid base element for constant getelementptr
define ptr @test_scalable_vector_gep(ptr %a) {
ret ptr getelementptr (<vscale x 1 x i8>, ptr @a, i64 1)
}