aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/IR/test-verifiers-op.mlir
blob: a6ae016244885a9cc60aede48828595a8e3be72c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: mlir-opt %s | FileCheck %s

// CHECK-LABEL: func @no_overflow_on_test_verifiers_op
func.func @no_overflow_on_test_verifiers_op() {
  %0 = arith.constant 1 : i32
  "test.verifiers"(%0) ({
    %1 = arith.constant 2 : i32
    "test.verifiers"(%1) ({
      %2 = arith.constant 3 : index
    }) : (i32) -> ()
  }) : (i32) -> ()
  return
}