aboutsummaryrefslogtreecommitdiff
path: root/test-suite/ltac2/errors.v
diff options
context:
space:
mode:
authorThéo Zimmermann2019-05-07 13:41:04 +0200
committerThéo Zimmermann2019-05-07 13:41:04 +0200
commit7602c2cb547fe6664f7a065d17717baf12b9da88 (patch)
tree1b034b3646090d35a8d730cbec6a5cf1c91da804 /test-suite/ltac2/errors.v
parent8aa64e7c4661549fef63a1c9c2e4e5284db911d8 (diff)
parent9779c0bf4945693bfd37b141e2c9f0fea200ba4d (diff)
Merge PR #10002: Integrate ltac2
Ack-by: JasonGross Reviewed-by: gares Reviewed-by: ppedrot Reviewed-by: jfehrle Ack-by: SkySkimmer Reviewed-by: Zimmi48 Reviewed-by: ejgallego
Diffstat (limited to 'test-suite/ltac2/errors.v')
-rw-r--r--test-suite/ltac2/errors.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/ltac2/errors.v b/test-suite/ltac2/errors.v
new file mode 100644
index 0000000000..c677f6af5d
--- /dev/null
+++ b/test-suite/ltac2/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.