diff mbox series

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

Message ID aa8041ab-2bfa-980d-0991-5cdc9a7894ec@oracle.com
State New
Headers show
Series c/55976 -Werror=return-type should error on returning a value from a void function | expand

Commit Message

dave.pagan@oracle.com June 19, 2018, 3:13 p.m. UTC
This patch fixes spurious failure for C test added with original patch 
for bug 55976.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55976

Added dg-prune-output for extraneous message causing unexpected test 
failure for test gcc.dg/noncompile/pr55976-1.c

Bootstrap tests run successfully x86_64-linux.

--Dave
/testsuite
2018-06-19  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.

Comments

Jeff Law June 22, 2018, 8:29 p.m. UTC | #1
On 06/19/2018 09:13 AM, dave.pagan@oracle.com wrote:
> This patch fixes spurious failure for C test added with original patch
> for bug 55976.
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55976
> 
> Added dg-prune-output for extraneous message causing unexpected test
> failure for test gcc.dg/noncompile/pr55976-1.c
> 
> Bootstrap tests run successfully x86_64-linux.
> 
> --Dave
> 
> CL-55976
> 
> 
> /testsuite
> 2018-06-19  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.
OK.
jeff
diff mbox series

Patch

Index: gcc/testsuite/gcc.dg/noncompile/pr55976-1.c
===================================================================
--- gcc/testsuite/gcc.dg/noncompile/pr55976-1.c	(revision 261613)
+++ gcc/testsuite/gcc.dg/noncompile/pr55976-1.c	(working copy)
@@ -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.  */