Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-luecke committed Jun 23, 2023
1 parent 0e497f8 commit 3ec1761
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mlir/test/mlir-pdll/Parser/expr-failure.pdll
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,18 @@ Pattern {

// -----

Rewrite Foo(op: Op);

Pattern {
// CHECK: negation of Rewrites is not supported
let root = op<>;
rewrite root with {
!Foo(root);
}
}

// -----

Pattern {
// CHECK: expected expression
let tuple = (10 = _: Value);
Expand Down

0 comments on commit 3ec1761

Please sign in to comment.