Commit 72df5daa by David Malcolm Committed by David Malcolm

Fix warning in gcc.dg/plugin/expensive_selftests_plugin.c with !CHECKING_P

gcc/testsuite/ChangeLog:
	* gcc.dg/plugin/expensive-selftests-1.c: Update regexp to handle
	the !CHECKING_P case by expecting a note.
	* gcc.dg/plugin/expensive_selftests_plugin.c (plugin_init): Issue
	a note for the !CHECKING_P case, and move the return statement
	outside of #if CHECKING_P guard.

From-SVN: r256183
parent 86aa0691
2018-01-03 David Malcolm <dmalcolm@redhat.com>
PR c/82050
* gcc.dg/plugin/expensive-selftests-1.c: Update regexp to handle
the !CHECKING_P case by expecting a note.
* gcc.dg/plugin/expensive_selftests_plugin.c (plugin_init): Issue
a note for the !CHECKING_P case, and move the return statement
outside of #if CHECKING_P guard.
2018-01-03 Jeff Law <law@redhat.com>
PR middle-end/83654
......
int not_empty;
/* { dg-regexp "expensive_selftests_plugin: .* pass\\(es\\) in .* seconds" } */
/* { dg-regexp "expensive_selftests_plugin: .* pass\\(es\\) in .* seconds|not enabled in this build" } */
......@@ -170,6 +170,8 @@ plugin_init (struct plugin_name_args *plugin_info,
PLUGIN_FINISH,
selftest::expensive_tests,
NULL); /* void *user_data */
return 0;
#else
inform (UNKNOWN_LOCATION, "self-tests are not enabled in this build");
#endif /* #if CHECKING_P */
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment