1 // RUN: not mlir-opt -split-input-file %s -mlir-print-op-on-diagnostic 2>&1 | FileCheck %s
3 // This file tests the functionality of 'mlir-print-op-on-diagnostic'.
5 // CHECK: {{invalid to use 'test.invalid_attr'}}
6 // CHECK: see current operation:
7 // CHECK-NEXT: "builtin.module"()
8 module attributes {test.invalid_attr} {}
13 "test.foo"(%cst) : (index) -> ()
14 // CHECK: {{operand #0 does not dominate this use}}
15 // CHECK: {{see current operation: "test.foo"(.*)}}
16 %cst = arith.constant 0 : index