Commit b62dc9ca by David Pagan Committed by Paolo Carlini

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
parent 62bb4a4b
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.
......
/* 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. */
......
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