aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-02-21 16:27:00 -0500
committerEmilio Jesus Gallego Arias2020-02-21 16:27:00 -0500
commit7ef010c50c9d8efcd20d44807126efcd418c4e0d (patch)
tree3ea883b38fdc81c0b6d29a5a0cc44cd233e0b032 /test-suite
parent6aa5057f98c0196a5897ca82699125a5a16bf22b (diff)
parentd69d5ec6116ca36dba623c474273f30744ce2c48 (diff)
Merge PR #11590: Fixes #9741: only printing notations do not uselessly reserve parsing keywords
Reviewed-by: ejgallego
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_9741.v21
1 files changed, 21 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_9741.v b/test-suite/bugs/closed/bug_9741.v
new file mode 100644
index 0000000000..247155d8b3
--- /dev/null
+++ b/test-suite/bugs/closed/bug_9741.v
@@ -0,0 +1,21 @@
+(* This was failing at parsing *)
+
+Notation "'a'" := tt (only printing).
+Goal True. let a := constr:(1+1) in idtac a. Abort.
+
+(* Idem *)
+
+Require Import Coq.Strings.String.
+Require Import Coq.ZArith.ZArith.
+Open Scope string_scope.
+
+Axiom Ox: string -> Z.
+
+Axiom isMMIOAddr: Z -> Prop.
+
+Notation "'Ox' a" := (Ox a) (only printing, at level 10, format "'Ox' a").
+
+Goal False.
+ set (f := isMMIOAddr).
+ set (x := f (Ox "0018")).
+Abort.