aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/closed/3001.v
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2014-04-07 20:57:42 -0400
committerGravatar Pierre Boutillier <pierre.boutillier@ens-lyon.org>2014-04-10 14:40:32 +0200
commit3c87a1cb2ae89284c70c6b9333a88a06fc4d060f (patch)
treef3e2cf6bbdf1bdae756050323efd1282227825e6 /test-suite/bugs/closed/3001.v
parent30d42837c0ae46aa563761ba20e481f7199d6652 (diff)
Add a regression test for bug 3001
Diffstat (limited to 'test-suite/bugs/closed/3001.v')
-rw-r--r--test-suite/bugs/closed/3001.v21
1 files changed, 21 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/3001.v b/test-suite/bugs/closed/3001.v
new file mode 100644
index 000000000..6e5655549
--- /dev/null
+++ b/test-suite/bugs/closed/3001.v
@@ -0,0 +1,21 @@
+Definition my_fun (n:nat) := n.
+
+Section My_Sec.
+ Global Arguments my_fun x : rename.
+End My_Sec.
+
+(* The following code suffices to trigger it, on my system:
+
+ Definition my_fun (n:nat) := n.
+
+ Section My_Sec.
+ Global Arguments my_fun x : rename.
+ End My_Sec.
+
+The `Global Arguments` declaration succeeds fine, but the `End My_Sec` fails, with `Anomaly: dirpath_prefix: empty dirpath. Please report.`
+
+If `Global` is removed, or if no arguments are renamed, then everything works as expected.
+
+If other declarations go between the `Global Arguments` and the `End My_Sec`, then the other declarations work normally, but the `End My_Sec` still fails.
+
+Previously reported at https://github.com/HoTT/coq/issues/24 . Occurs in both 8.4 and current trunk. *)