aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test-suite/output/Notations.v2
-rw-r--r--test-suite/success/Inversion.v8
2 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/output/Notations.v b/test-suite/output/Notations.v
index 4577f0e196..b37c3638af 100644
--- a/test-suite/output/Notations.v
+++ b/test-suite/output/Notations.v
@@ -145,6 +145,8 @@ Check (false && I 3)%bool /\ I 6.
(**********************************************************************)
(* Check notations with several recursive patterns *)
+Open Scope Z_scope.
+
Notation "[| x , y , .. , z ; a , b , .. , c |]" :=
(pair (pair .. (pair x y) .. z) (pair .. (pair a b) .. c)).
Check [|1,2,3;4,5,6|].
diff --git a/test-suite/success/Inversion.v b/test-suite/success/Inversion.v
index f83328e822..54b03b3eba 100644
--- a/test-suite/success/Inversion.v
+++ b/test-suite/success/Inversion.v
@@ -99,3 +99,11 @@ Lemma depinv : forall a b, foo a b -> True.
intros a b H.
inversion H.
Abort.
+
+(* Check non-regression of bug #1968 *)
+
+Inductive foo : option nat -> Prop := Foo : forall t, foo (Some t).
+Goal forall o, foo o -> 0 = 1.
+intros.
+eapply trans_eq.
+inversion H.