aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs
diff options
context:
space:
mode:
authorThéo Zimmermann2016-12-17 13:00:55 +0100
committerThéo Zimmermann2017-02-07 17:38:00 +0100
commited9ab22b8c3b2210f479689f46d3e4b2fd4f52df (patch)
tree8d82cd66f227abd83ce060dd8e27c93bfb2e43a8 /test-suite/bugs
parent9e87e9582ffe68ff549347d4fab37f7514992361 (diff)
Add test-suite files for hintdb variables in Ltac.
In particular, this closes bug 2417.
Diffstat (limited to 'test-suite/bugs')
-rw-r--r--test-suite/bugs/closed/2417.v15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/2417.v b/test-suite/bugs/closed/2417.v
new file mode 100644
index 0000000000..b2f00ffc65
--- /dev/null
+++ b/test-suite/bugs/closed/2417.v
@@ -0,0 +1,15 @@
+Parameter x y : nat.
+Axiom H : x = y.
+Hint Rewrite H : mybase.
+
+Ltac bar base := autorewrite with base.
+
+Tactic Notation "foo" ident(base) := autorewrite with base.
+
+Goal x = 0.
+ bar mybase.
+ now_show (y = 0).
+ Undo 2.
+ foo mybase.
+ now_show (y = 0).
+Abort.