aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorHugo Herbelin2018-11-24 17:38:59 +0100
committerHugo Herbelin2018-11-24 17:38:59 +0100
commite0f55aecee2ed9fc6f56979c255688e08b136c20 (patch)
tree4b4cb57242c597192e422b6e2e7cd5dec5ce84a8 /test-suite
parent05a2d99989ee4fffb41c3f20f97d30d488c2c15f (diff)
parent8a9d0ab4b5469f3042f4dbd32e7fde3294b5e8de (diff)
Merge PR #8996: Fix #8937: inductive conversion in coqchk subtyping
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/coqchk/bug_8937.v21
1 files changed, 21 insertions, 0 deletions
diff --git a/test-suite/coqchk/bug_8937.v b/test-suite/coqchk/bug_8937.v
new file mode 100644
index 0000000000..5b326e389b
--- /dev/null
+++ b/test-suite/coqchk/bug_8937.v
@@ -0,0 +1,21 @@
+(* -*- coq-prog-args: ("-noinit"); -*- *)
+
+Unset Elimination Schemes.
+Module Type S.
+
+Inductive foo : Prop :=.
+Definition bar (x:foo) : Prop := match x with end.
+
+End S.
+
+Module M.
+
+Inductive foo : Prop :=.
+Definition bar (x:foo) : Prop := match x with end.
+
+End M.
+
+Module MS : S := M.
+
+Module F (Z:S) := Z.
+Module MS' : S := F M.