summaryrefslogtreecommitdiff
path: root/test-suite/success/clear.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/success/clear.v')
-rw-r--r--test-suite/success/clear.v13
1 files changed, 11 insertions, 2 deletions
diff --git a/test-suite/success/clear.v b/test-suite/success/clear.v
index 444146f7..8169361c 100644
--- a/test-suite/success/clear.v
+++ b/test-suite/success/clear.v
@@ -1,6 +1,15 @@
Goal forall x:nat, (forall x, x=0 -> True)->True.
intros; eapply H.
instantiate (1:=(fun y => _) (S x)).
- simpl.
- clear x || trivial.
+ simpl.
+ clear x. trivial.
Qed.
+
+Goal forall y z, (forall x:nat, x=y -> True) -> y=z -> True.
+ intros; eapply H.
+ rename z into z'.
+ clear H0.
+ clear z'.
+ reflexivity.
+Qed.
+