From 72e3d2e563e08627559065ff0289403591d99682 Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Thu, 31 Aug 2017 23:49:21 +0200 Subject: Properly handling internal errors from Coq. --- tests/errors.v | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/errors.v (limited to 'tests/errors.v') 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. -- cgit v1.2.3