re PR c/55976 (-Werror=return-type should error on returning a value from a void function)

2018-06-28  David Pagan  <dave.pagan@oracle.com>

	PR c/55976
	* gcc.dg/noncompile/pr55976-1.c: Add dg-prune-output for extraneous
	message causing unexpected test FAIL.

From-SVN: r262215
This commit is contained in:
David Pagan 2018-06-28 08:42:17 +00:00 committed by Paolo Carlini
parent 62bb4a4b25
commit b62dc9ca3c
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2018-06-28 David Pagan <dave.pagan@oracle.com>
PR c/55976
* gcc.dg/noncompile/pr55976-1.c: Add dg-prune-output for extraneous
message causing unexpected test FAIL.
2018-06-28 Martin Liska <mliska@suse.cz>
* gcc.dg/tree-ssa/switch-1.c: New test.

View File

@ -1,6 +1,7 @@
/* PR c/55976 */
/* { dg-do compile } */
/* { dg-options "-Werror=return-type" } */
/* { dg-prune-output "some warnings being treated as errors" } */
/* Verify warnings for return type become errors. */