llvm-project
18 строк · 539.0 Байт
1// RUN: not mlir-opt -split-input-file %s -mlir-print-op-on-diagnostic 2>&1 | FileCheck %s
2
3// This file tests the functionality of 'mlir-print-op-on-diagnostic'.
4
5// CHECK: {{invalid to use 'test.invalid_attr'}}
6// CHECK: see current operation:
7// CHECK-NEXT: "builtin.module"()
8module attributes {test.invalid_attr} {}
9
10// -----
11
12func.func @foo() {
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
17return
18}
19