From 66b6e83f4f4c32ad86333e13d65329be02c46048 Mon Sep 17 00:00:00 2001 From: Maxime Dénès Date: Thu, 25 Apr 2019 12:02:43 +0200 Subject: Prepare merge into Coq --- vendor/Ltac2/tests/errors.v | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vendor/Ltac2/tests/errors.v (limited to 'vendor/Ltac2/tests/errors.v') 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. -- cgit v1.2.3