From: David Pagan Date: Thu, 28 Jun 2018 08:42:17 +0000 (+0000) Subject: re PR c/55976 (-Werror=return-type should error on returning a value from a void... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b62dc9ca3c3d43721610a5325b570dceb36384d6;p=gcc.git re PR c/55976 (-Werror=return-type should error on returning a value from a void function) 2018-06-28 David Pagan PR c/55976 * gcc.dg/noncompile/pr55976-1.c: Add dg-prune-output for extraneous message causing unexpected test FAIL. From-SVN: r262215 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4c3c92744c1..e3a52b5db95 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-06-28 David Pagan + + 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 * gcc.dg/tree-ssa/switch-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/noncompile/pr55976-1.c b/gcc/testsuite/gcc.dg/noncompile/pr55976-1.c index b3e63283c90..d078990bd88 100644 --- a/gcc/testsuite/gcc.dg/noncompile/pr55976-1.c +++ b/gcc/testsuite/gcc.dg/noncompile/pr55976-1.c @@ -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. */