aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorEnrico Tassi2020-07-24 16:01:57 +0200
committerEnrico Tassi2020-08-10 14:52:13 +0200
commit0aa3f871051c737192f9a19b79957b32b6ecafea (patch)
tree607180a7a5d1d3185252be366fd143625dc751b3 /test-suite
parent55f4095fe3c366a9f310584a55e2dc0605e5409c (diff)
[ssr] turn "nothing to inject" into a real warning (fix #12746)
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/ssr/noting_to_inject.v9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/ssr/noting_to_inject.v b/test-suite/ssr/noting_to_inject.v
new file mode 100644
index 0000000000..95bbd3e777
--- /dev/null
+++ b/test-suite/ssr/noting_to_inject.v
@@ -0,0 +1,9 @@
+Require Import ssreflect ssrfun ssrbool.
+
+
+Goal forall b : bool, b -> False.
+Set Warnings "+spurious-ssr-injection".
+Fail move=> b [].
+Set Warnings "-spurious-ssr-injection".
+move=> b [].
+Abort.