aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorcoqbot-app[bot]2020-11-03 18:15:15 +0000
committerGitHub2020-11-03 18:15:15 +0000
commitd08be3f4b749a56a5dfd63bce5ebe4a44cb21f14 (patch)
treef58b8c5d33b765954f81d6d03261bdb5bdc82cc9 /test-suite
parentdfdecf24210ee287d554cf4296bd0ccfffe310d8 (diff)
parent74fc0e6a280bbbf1f367bfbd73f0833b4d7e525f (diff)
Merge PR #13092: Fixing #13078: stack overflow and anomalies with binding notations in patterns
Reviewed-by: ejgallego Ack-by: ppedrot Ack-by: LasseBlaauwbroek
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_13078.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_13078.v b/test-suite/bugs/closed/bug_13078.v
new file mode 100644
index 0000000000..ec04408fd1
--- /dev/null
+++ b/test-suite/bugs/closed/bug_13078.v
@@ -0,0 +1,10 @@
+(* Check that rules with patterns are not registered for cases patterns *)
+Module PrintingTest.
+Declare Custom Entry test.
+Notation "& x" := (Some x) (in custom test at level 0, x pattern).
+Check fun x => match x with | None => None | Some tt => Some tt end.
+Notation "& x" := (Some x) (at level 0, x pattern).
+Check fun x => match x with | None => None | Some tt => Some tt end.
+End PrintingTest.
+
+Fail Notation "x &" := (Some x) (at level 0, x pattern).