Mercurial > hg > CbC > CbC_llvm
view mlir/test/IR/diagnostic-handler.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 %s -o - 2>&1 | FileCheck %s // This test verifies that diagnostic handler can emit the call stack successfully. // ----- // Emit the first available call stack in the fused location. func.func @constant_out_of_range() { // CHECK: mysource1:0:0: error: 'arith.constant' op failed to verify that all of {value, result} have same type // CHECK-NEXT: mysource2:1:0: note: called from // CHECK-NEXT: mysource3:2:0: note: called from %x = "arith.constant"() {value = 100} : () -> i1 loc(fused["bar", callsite("foo"("mysource1":0:0) at callsite("mysource2":1:0 at "mysource3":2:0))]) return }