1 // RUN: mlir-opt %s -split-input-file -verify-diagnostics
3 // expected-error@+2 {{invalid dimension}}
4 // expected-error@+1 {{custom op 'test.custom_dimension_list_attr' Failed parsing dimension list.}}
5 test.custom_dimension_list_attr dimension_list = 1x-1
9 // expected-error@+1 {{custom op 'test.custom_dimension_list_attr' Failed parsing dimension list. Did you mean an empty list? It must be denoted by "[]".}}
10 test.custom_dimension_list_attr dimension_list = -1
14 // expected-error@+2 {{expected ']'}}
15 // expected-error@+1 {{custom op 'test.custom_dimension_list_attr' Failed parsing dimension list.}}
16 test.custom_dimension_list_attr dimension_list = [2x3]
20 // expected-error @below {{expected attribute value}}
21 test.optional_custom_attr foo