aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMaxime Dénès2017-08-31 12:41:58 +0200
committerMaxime Dénès2017-08-31 12:41:58 +0200
commitf0b9359069de1223b9ffc8fedc557b87f919b24a (patch)
treeb8f6672b55415afef2ac4eea5789f6e283f7c54c /test-suite
parentbdfcbceb57cb8d04fea02da39dee6b8e7f75ad29 (diff)
parent4bbe2e4e2a9d5dea1a07f8cf0d7e3aeeed609201 (diff)
Merge PR #996: Fix BZ#5697: Congruence does not work with primitive projections
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/5697.v19
1 files changed, 19 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5697.v b/test-suite/bugs/closed/5697.v
new file mode 100644
index 0000000000..c653f992af
--- /dev/null
+++ b/test-suite/bugs/closed/5697.v
@@ -0,0 +1,19 @@
+Set Primitive Projections.
+
+Record foo : Type := Foo { foo_car: nat }.
+
+Goal forall x y : nat, x <> y -> Foo x <> Foo y.
+Proof.
+intros.
+intros H'.
+congruence.
+Qed.
+
+Record bar (A : Type) : Type := Bar { bar_car: A }.
+
+Goal forall x y : nat, x <> y -> Bar nat x <> Bar nat y.
+Proof.
+intros.
+intros H'.
+congruence.
+Qed.