From 42f0842f3521add9d057818979a53f99107dcbff Mon Sep 17 00:00:00 2001
From: Ralf Jung <jung@mpi-sws.org>
Date: Mon, 25 Jun 2018 14:02:15 +0200
Subject: [PATCH] bump std++; test that we don't break setoid_rewrite

---
 opam            |  2 +-
 tests/algebra.v | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/opam b/opam
index 8d3353de4..1b429b576 100644
--- a/opam
+++ b/opam
@@ -11,5 +11,5 @@ install: [make "install"]
 remove: ["rm" "-rf" "%{lib}%/coq/user-contrib/iris"]
 depends: [
   "coq" { (>= "8.7.1" & < "8.9~") | (= "dev") }
-  "coq-stdpp" { (= "dev.2018-06-20.0.b2ca5d48") | (= "dev") }
+  "coq-stdpp" { (= "dev.2018-06-25.1.0eb9a89b") | (= "dev") }
 ]
diff --git a/tests/algebra.v b/tests/algebra.v
index 8505ef201..0ec719eac 100644
--- a/tests/algebra.v
+++ b/tests/algebra.v
@@ -8,3 +8,19 @@ Section tests.
   Solve Obligations with solve_proper.
 
 End tests.
+
+(** Check that [@Reflexive Prop ?r] picks the instance setoid_rewrite needs.
+    Really, we want to set [Hint Mode Reflexive] in a way that this fails, but
+    we cannot [1].  So at least we try to make sure the first solution found
+    is the right one, to not pay performance in the success case [2].
+
+    [1] https://github.com/coq/coq/issues/7916
+    [2] https://gitlab.mpi-sws.org/robbertkrebbers/coq-stdpp/merge_requests/38
+*)
+Lemma test_setoid_rewrite :
+  exists R, @Reflexive Prop R /\ R = iff.
+Proof.
+  eexists. split.
+  - apply _.
+  - reflexivity.
+Qed.
-- 
GitLab