brintos

brintos / llvm-project-archived public Read only

0
0
Text · 539 B · 9c81420 Raw
19 lines · plain
1// RUN: not mlir-opt -split-input-file %s -mlir-print-op-on-diagnostic 2>&1 | FileCheck %s2 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 : index17  return18}19