xref: /llvm-project/mlir/test/Dialect/Builtin/invalid.mlir (revision 79c83e12c8884fa46f2f2594836af93474f6ca5a)
1// RUN: mlir-opt %s -split-input-file -verify-diagnostics
2
3//===----------------------------------------------------------------------===//
4// UnrealizedConversionCastOp
5//===----------------------------------------------------------------------===//
6
7// expected-error@+1 {{expected at least one result for cast operation}}
8"builtin.unrealized_conversion_cast"() : () -> ()
9
10// -----
11
12//===----------------------------------------------------------------------===//
13// VectorType
14//===----------------------------------------------------------------------===//
15
16// expected-error@+1 {{missing ']' closing scalable dimension}}
17func.func @scalable_vector_arg(%arg0: vector<[4xf32>) { }
18
19// -----
20
21// expected-error@+1 {{missing ']' closing scalable dimension}}
22func.func @scalable_vector_arg(%arg0: vector<[4x4]xf32>) { }
23