aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorCyril Cohen2020-08-10 19:54:48 +0200
committerCyril Cohen2020-08-10 19:54:48 +0200
commitd5a8bdc8f67b691dd39a27a9fe07a026d998fda3 (patch)
treed7c9a94c9fa3edb09c11fd1705654796b6ddda59 /test-suite
parentef08abec26c2f0017d1136870f8f99144e579538 (diff)
parent0aa3f871051c737192f9a19b79957b32b6ecafea (diff)
Merge PR #12749: [ssr] turn "nothing to inject" into a real warning (fix #12746)
Reviewed-by: CohenCyril Reviewed-by: SkySkimmer Ack-by: Zimmi48 Ack-by: maximedenes Ack-by: ppedrot
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.