summaryrefslogtreecommitdiff
path: root/test-suite/interactive/4289.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/interactive/4289.v')
-rw-r--r--test-suite/interactive/4289.v14
1 files changed, 14 insertions, 0 deletions
diff --git a/test-suite/interactive/4289.v b/test-suite/interactive/4289.v
new file mode 100644
index 00000000..610a509c
--- /dev/null
+++ b/test-suite/interactive/4289.v
@@ -0,0 +1,14 @@
+(* Checking backtracking with modules which used to fail due to an
+ hash-consing bug *)
+
+Module Type A.
+ Axiom B : nat.
+End A.
+Module C (a : A).
+ Include a.
+ Definition c : nat := B.
+End C.
+Back 4.
+Module C (a : A).
+ Include a.
+ Definition c : nat := B.