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

define void @store(ptr %x, i32 %y, <vscale x 1 x i32> %z) {
; CHECK: error: storing unsized types is not allowed
  %a = insertvalue { i32, <vscale x 1 x i32> } undef, i32 %y, 0
  %b = insertvalue { i32, <vscale x 1 x i32> } %a,  <vscale x 1 x i32> %z, 1
  store { i32, <vscale x 1 x i32> } %b, ptr %x
  ret void
}