aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/success/fix.v
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2007-04-13 12:56:00 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2007-04-13 12:56:00 +0000
commitba8f9564e492cd8d25a193cfc5883ed06faaea02 (patch)
treefeef97b6488038be70692a6d73bc23112683ac15 /test-suite/success/fix.v
parentad74962cf5b1ec9a31e56ccd9caa0c1cc98f2964 (diff)
Test non régression bug #1491
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9763 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/success/fix.v')
-rw-r--r--test-suite/success/fix.v21
1 files changed, 14 insertions, 7 deletions
diff --git a/test-suite/success/fix.v b/test-suite/success/fix.v
index f4a4d36d9..108886cf5 100644
--- a/test-suite/success/fix.v
+++ b/test-suite/success/fix.v
@@ -1,10 +1,3 @@
-(************************************************************************)
-(* v * The Coq Proof Assistant / The Coq Development Team *)
-(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
-(* \VV/ **************************************************************)
-(* // * This file is distributed under the terms of the *)
-(* * GNU Lesser General Public License Version 2.1 *)
-(************************************************************************)
(* Ancien bug signale par Laurent Thery sur la condition de garde *)
Require Import Bool.
@@ -50,3 +43,17 @@ Fixpoint maxVar (e : rExpr) : rNat :=
| rNode n p q => rmax (maxVar p) (maxVar q)
end.
+(* Check bug #1491 *)
+
+Require Import Streams.
+
+Definition decomp (s:Stream nat) : Stream nat :=
+ match s with Cons _ s => s end.
+
+CoFixpoint bx0 : Stream nat := Cons 0 bx1
+with bx1 : Stream nat := Cons 1 bx0.
+
+Lemma bx0bx : decomp bx0 = bx1.
+simpl. (* used to return bx0 in V8.1 and before instead of bx1 *)
+reflexivity.
+Qed.