Mercurial > hg > CbC > CbC_llvm
view mlir/test/IR/diagnostic-handler.mlir @ 214:0cf2d4ade63d
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Jul 2021 09:53:52 +0900 |
parents | 0572611fdcc8 |
children | c4bab56944e8 |
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 @constant_out_of_range() { // CHECK: mysource1:0:0: error: 'std.constant' op requires attribute's type ('i64') to match op's return type ('i1') // CHECK-NEXT: mysource2:1:0: note: called from // CHECK-NEXT: mysource3:2:0: note: called from %x = "std.constant"() {value = 100} : () -> i1 loc(fused["bar", callsite("foo"("mysource1":0:0) at callsite("mysource2":1:0 at "mysource3":2:0))]) return }