aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/interactive
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2015-07-30 14:00:12 +0200
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2015-07-30 14:01:35 +0200
commit5a6e0088adb4e817133d4d7f5a547fbc23fe7951 (patch)
tree18a35e182be7f33587fe981d8a660bf9a4f89234 /test-suite/interactive
parent9f81b58551958aea2a85bcdd0cc3f88bf4634c92 (diff)
Test file for bug #4289 (buggy hash-consing of kernel name pairs
breaking backtracking in the presence of functors). In "interactive" rather than "bugs" because of the use of Back.
Diffstat (limited to 'test-suite/interactive')
-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 000000000..610a509c9
--- /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.