; 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-NEXT: Globals cannot contain scalable vectors ; CHECK-NEXT: { i32, }* @ScalableVecStructGlobal @ScalableVecStructGlobal = global { i32, } zeroinitializer ;; Global _pointers_ to scalable vectors are fine ; CHECK-NOT: Globals cannot contain scalable vectors @ScalableVecPtr = global * zeroinitializer