aboutsummaryrefslogtreecommitdiff
path: root/vendor/Ltac2/tests/errors.v
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/Ltac2/tests/errors.v')
-rw-r--r--vendor/Ltac2/tests/errors.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/Ltac2/tests/errors.v b/vendor/Ltac2/tests/errors.v
new file mode 100644
index 0000000000..c677f6af5d
--- /dev/null
+++ b/vendor/Ltac2/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 None)
+end.
+Abort.