aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Verifier/scalable-vector-struct-gep.ll
blob: c8c8c7431d7a08cc3c1c7cde7478dfdff51ddafa (plain)
1
2
3
4
5
6
7
8
9
; RUN: not opt -S -passes=verify < %s 2>&1 | FileCheck %s

%struct.test = type { <vscale x 1 x double>, <vscale x 1 x double> }

define void @gep(ptr %a) {
; CHECK: error: getelementptr cannot target structure that contains scalable vector type
  %a.addr = getelementptr %struct.test, ptr %a, i32 0
  ret void
}