aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/unification.v7
1 files changed, 7 insertions, 0 deletions
diff --git a/test-suite/success/unification.v b/test-suite/success/unification.v
index e31d67d8cd..9de78b138b 100644
--- a/test-suite/success/unification.v
+++ b/test-suite/success/unification.v
@@ -109,3 +109,10 @@ intros.
apply H0. (* Check that equation ?n[H] = ?n[H] is correctly considered true *)
reflexivity.
Qed.
+
+(* An example that failed at some time in early 2008 *)
+(* The "fun t => match ..." used to raise an anomaly instead of an error *)
+
+Ltac f := set (x:=fun t => match t with (f,_) => f 0 end).
+Goal True.
+try f. (* if an error, it is caught *)