xref: /llvm-project/llvm/test/Verifier/scalable-vector-struct-store.ll (revision c820f2a43eaba02db97c4ff60c58a58e6bdd391d)
1; RUN: not opt -S -passes=verify < %s 2>&1 | FileCheck %s
2
3define void @store(ptr %x, i32 %y, <vscale x 1 x i32> %z) {
4; CHECK: error: storing unsized types is not allowed
5  %a = insertvalue { i32, <vscale x 1 x i32> } undef, i32 %y, 0
6  %b = insertvalue { i32, <vscale x 1 x i32> } %a,  <vscale x 1 x i32> %z, 1
7  store { i32, <vscale x 1 x i32> } %b, ptr %x
8  ret void
9}
10