1 // RUN: mlir-opt %s -verify-diagnostics -split-input-file
3 // Testing invalid IRDL IRs
7 // expected-error@+1 {{symbol '@foo' not found}}
17 // expected-error@+1 {{the base type or attribute name should start with '!' or '#'}}
18 %0 = irdl.base "builtin.integer"
27 // expected-error@+1 {{the base type or attribute name should start with '!' or '#'}}
37 // expected-error@+1 {{the base type or attribute should be specified by either a name}}
45 func.func private @not_a_type_or_attr()
47 irdl.dialect @invalid_parametric {
49 // expected-error@+1 {{symbol '@not_a_type_or_attr' does not refer to a type or attribute definition}}
50 %param = irdl.parametric @not_a_type_or_attr<>