aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-11-22 14:13:34 +0100
committerGaëtan Gilbert2019-11-22 14:13:34 +0100
commit11337dac57824fc96c91cba7c4d0bc6d1c068068 (patch)
tree2bbd2fce29175e30c9b5d4629df759463c5cfd21
parent27e4f306d54f2cc04b40d740584a7b3eda2d490a (diff)
Add test for #11161
This is better than expecting other tests to fail if we mess up again.
-rw-r--r--test-suite/bugs/closed/bug_11161.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_11161.v b/test-suite/bugs/closed/bug_11161.v
new file mode 100644
index 0000000000..22a075e096
--- /dev/null
+++ b/test-suite/bugs/closed/bug_11161.v
@@ -0,0 +1,10 @@
+(* Ensure that evars are properly normalized in the instance path.
+ Problems with this can cause eg #11161. *)
+
+Class Foo (n:nat) := {x : bool}.
+
+Instance bar n : Foo n. Admitted.
+
+Instance bar' n : Foo n. split. abstract exact true. Qed.
+
+Instance bar'' n : Foo n. split. abstract exact true. Defined.