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