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

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

%ty = type [2 x { i32, <vscale x 1 x i32> }]
; CHECK: error: invalid element type for struct
; CHECK: %ty = type [2 x { i32, <vscale x 1 x i32> }]
OpenPOWER on IntegriCloud