aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/failure/circular_subtyping.v
diff options
context:
space:
mode:
authorGravatar xclerc <xclerc@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-09-20 12:57:59 +0000
committerGravatar xclerc <xclerc@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-09-20 12:57:59 +0000
commitf361ba32a28796514b8d3469c7bee3f43ad61fc1 (patch)
tree3b630e7ea504e038cd7611da4710d79d315cd810 /test-suite/failure/circular_subtyping.v
parent4ac92a2aebe31ff4d5d2fce48701e5994391d7b9 (diff)
Merge "circular_subtyping?.v" tests into a single "circular_subtyping.v" test.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16799 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/failure/circular_subtyping.v')
-rw-r--r--test-suite/failure/circular_subtyping.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/failure/circular_subtyping.v b/test-suite/failure/circular_subtyping.v
new file mode 100644
index 000000000..ceccd4607
--- /dev/null
+++ b/test-suite/failure/circular_subtyping.v
@@ -0,0 +1,10 @@
+(* subtyping verification in presence of pseudo-circularity*)
+Module Type S. End S.
+Module Type T. Declare Module M:S. End T.
+Module N:S. End N.
+Module NN <: T. Module M:=N. End NN.
+
+Fail Module P <: T with Module M:=NN := NN.
+
+Module F (X:S) (Y:T with Module M:=X). End F.
+Fail Module G := F N N. \ No newline at end of file