From 0aa3f871051c737192f9a19b79957b32b6ecafea Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Fri, 24 Jul 2020 16:01:57 +0200 Subject: [ssr] turn "nothing to inject" into a real warning (fix #12746) --- test-suite/ssr/noting_to_inject.v | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test-suite/ssr/noting_to_inject.v (limited to 'test-suite') 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. -- cgit v1.2.3