; RUN: not opt -S -verify < %s 2>&1 | FileCheck %s ;; Global variables cannot be scalable vectors, since we don't ;; know the size at compile time. ; CHECK: Globals cannot contain scalable vectors ; CHECK-NEXT: * @ScalableVecGlobal @ScalableVecGlobal = global zeroinitializer ; CHECK: Globals cannot contain scalable vectors ; CHECK-NEXT: [64 x ]* @ScalableVecGlobalArray @ScalableVecGlobalArray = global [64 x ] zeroinitializer ; CHECK: Globals cannot contain scalable vectors ; CHECK-NEXT: { , }* @ScalableVecGlobalStruct @ScalableVecGlobalStruct = global { , } zeroinitializer ; CHECK: Globals cannot contain scalable vectors ; CHECK-NEXT: { [4 x i32], [2 x { , }] }* @ScalableVecMixed @ScalableVecMixed = global { [4 x i32], [2 x { , }]} zeroinitializer ;; Global _pointers_ to scalable vectors are fine ; CHECK-NOT: Globals cannot contain scalable vectors @ScalableVecPtr = global * zeroinitializer