; RUN: not opt -S -verify < %s 2>&1 | FileCheck %s ;; Arrays and Structs cannot contain scalable vectors, since we don't ;; know the size at compile time and the container types need to have ;; a known size. ; CHECK-DAG: Arrays cannot contain scalable vectors ; CHECK-DAG: [4 x ]; ModuleID = '' ; CHECK-DAG: Arrays cannot contain scalable vectors ; CHECK-DAG: [2 x ]; ModuleID = '' ; CHECK-DAG: Structs cannot contain scalable vectors ; CHECK-DAG: { i32, }; ModuleID = '' ;; CHECK-DAG: Structs cannot contain scalable vectors ; CHECK-DAG: { , }; ModuleID = '' ; CHECK-DAG: Structs cannot contain scalable vectors ; CHECK-DAG: %sty = type { i64, }; ModuleID = '' %sty = type { i64, } define void @scalable_aggregates() { %array = alloca [2 x ] %struct = alloca { , } %named_struct = alloca %sty %s_in_a = alloca [2 x { i32, } ] %a_in_s = alloca { i64, [4 x ] } ret void }