summaryrefslogtreecommitdiffstats
path: root/llvm/test/Other/scalable-vector-array.ll
blob: b5c7e90d792b9a5a50f4fe01db5aa64830982e82 (plain)
1
2
3
4
5
6
7
8
; RUN: not opt -S -verify < %s 2>&1 | FileCheck %s

;; Arrays cannot contain scalable vectors; make sure we detect them even
;; when nested inside other aggregates.

%ty = type { i64, [4 x <vscale x 256 x i1>] }
; CHECK: error: invalid array element type
; CHECK: %ty = type { i64, [4 x <vscale x 256 x i1>] }
OpenPOWER on IntegriCloud