aboutsummaryrefslogtreecommitdiff
path: root/test-suite/prerequisite
diff options
context:
space:
mode:
authorHugo Herbelin2018-09-05 21:56:06 +0200
committerHugo Herbelin2018-09-05 22:26:59 +0200
commit899f3eb1f65ad2e6a3fababa0213ac63e2501bbe (patch)
tree301b3ecc7729b38ef1f2066910ff6ea298db8e6c /test-suite/prerequisite
parent579f30a53809f9cf73aa3d7c69960b50fc51c7fc (diff)
Fixing #8416 (Print Assumptions missing module information from compiled files).
This fixes the fix 1522b989 to #7192. The remaining Not_found after 1522b989 should have rung a bell that something was still strange.
Diffstat (limited to 'test-suite/prerequisite')
-rw-r--r--test-suite/prerequisite/module_bug7192.v9
-rw-r--r--test-suite/prerequisite/module_bug8416.v2
2 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/prerequisite/module_bug7192.v b/test-suite/prerequisite/module_bug7192.v
new file mode 100644
index 0000000000..82cfe560af
--- /dev/null
+++ b/test-suite/prerequisite/module_bug7192.v
@@ -0,0 +1,9 @@
+(* Variant of #7192 to be tested in a file requiring this file *)
+(* #7192 is about Print Assumptions not entering implementation of submodules *)
+
+Definition a := True.
+Module Type B. Axiom f : Prop. End B.
+Module Type C. Declare Module D : B. End C.
+Module M7192: C.
+ Module D <: B. Definition f := a. End D.
+End M7192.
diff --git a/test-suite/prerequisite/module_bug8416.v b/test-suite/prerequisite/module_bug8416.v
new file mode 100644
index 0000000000..70f43d132a
--- /dev/null
+++ b/test-suite/prerequisite/module_bug8416.v
@@ -0,0 +1,2 @@
+Module Type A. Axiom f : True. End A.
+Module M8416 : A. Definition f := I. End M8416.