diff options
Diffstat (limited to 'test/smt/exception.unsat.sail')
| -rw-r--r-- | test/smt/exception.unsat.sail | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/smt/exception.unsat.sail b/test/smt/exception.unsat.sail new file mode 100644 index 00000000..e2455425 --- /dev/null +++ b/test/smt/exception.unsat.sail @@ -0,0 +1,17 @@ +default Order dec + +$include <vector_dec.sail> + +union exception = { + E_bool : bool, + E_unit : unit +} + +function check_sat((): unit) -> bool = { + try { + throw(E_bool(false)) + } catch { + E_bool(b) => b, + E_unit() => true + } +} |
