aboutsummaryrefslogtreecommitdiff
path: root/tests/errors.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors.v')
-rw-r--r--tests/errors.v12
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.