diff options
| author | Pierre-Marie Pédrot | 2017-08-31 23:49:21 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-08-31 23:59:38 +0200 |
| commit | 72e3d2e563e08627559065ff0289403591d99682 (patch) | |
| tree | 92645139a1821774db690046c9801acbe033e710 /tests/errors.v | |
| parent | e89c5c3de0f00de2732f385087a3461b4e6f3a84 (diff) | |
Properly handling internal errors from Coq.
Diffstat (limited to 'tests/errors.v')
| -rw-r--r-- | tests/errors.v | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/errors.v b/tests/errors.v new file mode 100644 index 0000000000..e7beff3420 --- /dev/null +++ b/tests/errors.v @@ -0,0 +1,12 @@ +Require Import Ltac2.Ltac2. + +Goal True. +Proof. +let x := Control.plus + (fun () => let _ := constr:(nat -> 0) in 0) + (fun e => match e with Not_found => 1 | _ => 2 end) in +match Int.equal x 2 with +| true => () +| false => Control.throw Tactic_failure +end. +Abort. |
