1 // RUN: not mlir-tblgen -gen-rewriters -I %S/../../include %s 2>&1 | FileCheck %s
3 include "mlir/IR/OpBase.td"
5 def Test_Dialect : Dialect {
9 def OpA : Op<Test_Dialect, "a"> {
10 let arguments = (ins I32Attr:$attr);
12 def OpB : Op<Test_Dialect, "b"> {
13 let arguments = (ins I32Attr:$attr);
16 def : Pat<(OpA $attr), (OpB $attr),
17 // CHECK: operands to additional constraints can only be symbol references
18 [(Constraint<CPred<"$0->getValue() == $1">> $attr, 42)]>;