aboutsummaryrefslogtreecommitdiff
path: root/vendor/Ltac2/tests/errors.v
diff options
context:
space:
mode:
authorMaxime Dénès2019-04-25 12:09:52 +0200
committerMaxime Dénès2019-04-25 12:09:52 +0200
commit392d40134c9cd7dee882e31da96369dd09fbbb45 (patch)
tree5f89b9703743038f6940f84b6808e4c84ce39a10 /vendor/Ltac2/tests/errors.v
parent75c5264aa687480c66a6765d64246b5ebd2c0d54 (diff)
parent66b6e83f4f4c32ad86333e13d65329be02c46048 (diff)
Merge Ltac2 plugin
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.