annotate mlir/test/IR/diagnostic-handler.mlir @ 154:f7e988d3e4cc

fix def file
author anatofuz
date Wed, 11 Mar 2020 19:23:03 +0900
parents 1d019706d866
children 0572611fdcc8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: not mlir-opt %s -o - 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
2 // This test verifies that diagnostic handler can emit the call stack successfully.
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // -----
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 // Emit the first available call stack in the fused location.
anatofuz
parents:
diff changeset
7 func @constant_out_of_range() {
anatofuz
parents:
diff changeset
8 // CHECK: mysource1: error: 'std.constant' op requires attribute's type ('i64') to match op's return type ('i1')
anatofuz
parents:
diff changeset
9 // CHECK-NEXT: mysource2: note: called from
anatofuz
parents:
diff changeset
10 // CHECK-NEXT: mysource3: note: called from
anatofuz
parents:
diff changeset
11 %x = "std.constant"() {value = 100} : () -> i1 loc(fused["bar", callsite("foo"("mysource1":0:0) at callsite("mysource2":1:0 at "mysource3":2:0))])
anatofuz
parents:
diff changeset
12 return
anatofuz
parents:
diff changeset
13 }