aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed
diff options
context:
space:
mode:
authorThéo Zimmermann2018-09-21 14:10:23 +0200
committerThéo Zimmermann2018-09-21 14:10:23 +0200
commitbceb3bc784d5ce196e06815bd91963607a35a62c (patch)
treef4a18b7a40bddb054e373b3fbf287c77e246c9eb /test-suite/bugs/closed
parent90ace7786901aa2f1253cf3887bf3e5221c5dae7 (diff)
parenta597bb33eb9b3c9d70422d72e89bcbda90896ddb (diff)
Merge PR #8455: Move tests in bugs/ to bugs/closed/.
Diffstat (limited to 'test-suite/bugs/closed')
-rw-r--r--test-suite/bugs/closed/2428.v10
-rw-r--r--test-suite/bugs/closed/4623.v5
-rw-r--r--test-suite/bugs/closed/4624.v7
-rw-r--r--test-suite/bugs/closed/7333.v39
4 files changed, 61 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/2428.v b/test-suite/bugs/closed/2428.v
new file mode 100644
index 0000000000..b398a76d91
--- /dev/null
+++ b/test-suite/bugs/closed/2428.v
@@ -0,0 +1,10 @@
+Axiom P : nat -> Prop.
+
+Definition myFact := forall x, P x.
+
+Hint Extern 1 (P _) => progress (unfold myFact in *).
+
+Lemma test : (True -> myFact) -> P 3.
+Proof.
+ intros. debug eauto.
+Qed.
diff --git a/test-suite/bugs/closed/4623.v b/test-suite/bugs/closed/4623.v
new file mode 100644
index 0000000000..7ecfd98b67
--- /dev/null
+++ b/test-suite/bugs/closed/4623.v
@@ -0,0 +1,5 @@
+Goal Type -> Type.
+set (T := Type).
+clearbody T.
+refine (@id _).
+Qed.
diff --git a/test-suite/bugs/closed/4624.v b/test-suite/bugs/closed/4624.v
new file mode 100644
index 0000000000..f5ce981cd0
--- /dev/null
+++ b/test-suite/bugs/closed/4624.v
@@ -0,0 +1,7 @@
+Record foo := mkfoo { type : Type }.
+
+Canonical Structure fooA (T : Type) := mkfoo (T -> T).
+
+Definition id (t : foo) (x : type t) := x.
+
+Definition bar := id _ ((fun x : nat => x) : _).
diff --git a/test-suite/bugs/closed/7333.v b/test-suite/bugs/closed/7333.v
new file mode 100644
index 0000000000..fba5b9029d
--- /dev/null
+++ b/test-suite/bugs/closed/7333.v
@@ -0,0 +1,39 @@
+Module Example1.
+
+CoInductive wrap : Type :=
+ | item : unit -> wrap.
+
+Definition extract (t : wrap) : unit :=
+match t with
+| item x => x
+end.
+
+CoFixpoint close u : unit -> wrap :=
+match u with
+| tt => item
+end.
+
+Definition table : wrap := close tt tt.
+
+Eval vm_compute in (extract table).
+Eval vm_compute in (extract table).
+
+End Example1.
+
+Module Example2.
+
+Set Primitive Projections.
+CoInductive wrap : Type :=
+ item { extract : unit }.
+
+CoFixpoint close u : unit -> wrap :=
+match u with
+| tt => item
+end.
+
+Definition table : wrap := close tt tt.
+
+Eval vm_compute in (extract table).
+Eval vm_compute in (extract table).
+
+End Example2.