aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorHugo Herbelin2019-12-27 13:30:49 +0100
committerHugo Herbelin2019-12-27 13:30:49 +0100
commit9c74438f09c2dddaa320eccf4d0842c77e3c863d (patch)
tree53a3b812bd8c08715e3a9f7b77681f4eb3d51fef /test-suite
parent4c19baf3a1b0ee9b1e94df4bca29c53125445db8 (diff)
parentfcd903c299db00d5c8d3e2fa797404eb880b61ac (diff)
Merge PR #11315: Ensure that a custom entry cannot be defined twice.
Reviewed-by: herbelin Reviewed-by: maximedenes
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/custom_entry.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/success/custom_entry.v b/test-suite/success/custom_entry.v
new file mode 100644
index 0000000000..e88ae65e18
--- /dev/null
+++ b/test-suite/success/custom_entry.v
@@ -0,0 +1,13 @@
+Declare Custom Entry foo.
+
+Print Custom Grammar foo.
+
+Notation "[ e ]" := e (e custom foo at level 0).
+
+Print Custom Grammar foo.
+
+Notation "1" := O (in custom foo at level 0).
+
+Print Custom Grammar foo.
+
+Fail Declare Custom Entry foo.