aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorHugo Herbelin2018-12-08 14:45:28 +0100
committerHugo Herbelin2018-12-12 13:30:29 +0100
commit412a96a5c3560fee1adad87a3ba1aa1d324ab039 (patch)
tree2c76fc72b0fe976514bb2c01737a1fca1af4d6a0 /test-suite
parent84a950c8e1fa06d0dd764e9a426edbd987a7989e (diff)
Fixes #9166 (no warning on pattern variables named like a deprecated alias).
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_9166.v9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_9166.v b/test-suite/bugs/closed/bug_9166.v
new file mode 100644
index 0000000000..8a7e9c37b0
--- /dev/null
+++ b/test-suite/bugs/closed/bug_9166.v
@@ -0,0 +1,9 @@
+Set Warnings "+deprecated".
+
+Notation bar := option (compat "8.7").
+
+Definition foo (x: nat) : nat :=
+ match x with
+ | 0 => 0
+ | S bar => bar
+ end.