aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/success/intros.v
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2015-09-09 11:00:35 +0200
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2015-09-09 11:08:53 +0200
commit952cd3e53d630120dc1319c93421fe2708252b54 (patch)
tree05326c26788c6edaac980c69a0187e3875bb8de1 /test-suite/success/intros.v
parent9510a3994210f545119ea35cdad43facededb6a2 (diff)
parent703e5b595a4a96dc9ff3df7ad10f90a238a061b6 (diff)
Merge remote-tracking branch 'origin/v8.5' into trunk
Diffstat (limited to 'test-suite/success/intros.v')
-rw-r--r--test-suite/success/intros.v28
1 files changed, 28 insertions, 0 deletions
diff --git a/test-suite/success/intros.v b/test-suite/success/intros.v
index 9443d01e3..ae1694c58 100644
--- a/test-suite/success/intros.v
+++ b/test-suite/success/intros.v
@@ -33,3 +33,31 @@ Goal True -> True -> True.
intros _ ?.
exact H.
Qed.
+
+(* A short test about introduction pattern pat/c *)
+Goal (True -> 0=0) -> True /\ False -> 0=0.
+intros H (H1/H,_).
+exact H1.
+Qed.
+
+(* A test about bugs in 8.5beta2 *)
+Goal (True -> 0=0) -> True /\ False -> False -> 0=0.
+intros H H0 H1.
+destruct H0 as (a/H,_).
+(* Check that H0 is removed (was bugged in 8.5beta2) *)
+Fail clear H0.
+(* Check position of newly created hypotheses when using pat/c (was
+ left at top in 8.5beta2) *)
+match goal with H:_ |- _ => clear H end. (* clear H1:False *)
+match goal with H:_ |- _ => exact H end. (* check that next hyp shows 0=0 *)
+Qed.
+
+Goal (True -> 0=0) -> True -> 0=0.
+intros H H1/H.
+exact H1.
+Qed.
+
+Goal forall n, n = S n -> 0=0.
+intros n H/n_Sn.
+destruct H.
+Qed.