aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/IR/diagnostic-handler-verify-regex.mlir
blob: 03486f366949c38a1fb2d7d355fc9d15467bd5e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: not mlir-opt -allow-unregistered-dialect %s -split-input-file -verify-diagnostics 2>&1 | FileCheck %s

// CHECK: found start of regex with no end '}}'
// expected-error-re {{{{}}

// -----

// CHECK: invalid regex: parentheses not balanced
// expected-error-re {{ {{(}} }}

// -----

func.func @foo() -> i32 {
  // expected-error-re@+1 {{'func.return' op has 0 operands, but enclosing function (@{{.*}}) returns 1}}
  return
}