summaryrefslogtreecommitdiff
path: root/mlir/test/Target/SMTLIB/integer-errors.mlir
blob: 4dc5f48f4fe5b947dbd6ca416c9d1ecbffdb7365 (plain)
1
2
3
4
5
6
7
// RUN: mlir-translate --export-smtlib %s --split-input-file --verify-diagnostics

smt.solver () : () -> () {
  %0 = smt.int.constant 5
  // expected-error @below {{operation not supported for SMTLIB emission}}
  %1 = smt.int2bv %0 : !smt.bv<4>
}