Skip to content

Commit 3ec1761

Browse files
committed
add test
1 parent 0e497f8 commit 3ec1761

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

mlir/test/mlir-pdll/Parser/expr-failure.pdll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,18 @@ Pattern {
183183

184184
// -----
185185

186+
Rewrite Foo(op: Op);
187+
188+
Pattern {
189+
// CHECK: negation of Rewrites is not supported
190+
let root = op<>;
191+
rewrite root with {
192+
!Foo(root);
193+
}
194+
}
195+
196+
// -----
197+
186198
Pattern {
187199
// CHECK: expected expression
188200
let tuple = (10 = _: Value);

0 commit comments

Comments
 (0)