Mercurial > hg > CbC > CbC_llvm
view mlir/test/IR/print-op-on-diagnostic.mlir @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line source
// RUN: not mlir-opt -split-input-file %s -mlir-print-op-on-diagnostic 2>&1 | FileCheck %s // This file tests the functionality of 'mlir-print-op-on-diagnostic'. // CHECK: {{invalid to use 'test.invalid_attr'}} // CHECK: see current operation: // CHECK-NEXT: "builtin.module"() module attributes {test.invalid_attr} {} // ----- func.func @foo() { "test.foo"(%cst) : (index) -> () // CHECK: {{operand #0 does not dominate this use}} // CHECK: {{see current operation: "test.foo"(.*)}} %cst = arith.constant 0 : index return }