From b62dc9ca3c3d43721610a5325b570dceb36384d6 Mon Sep 17 00:00:00 2001 From: David Pagan Date: Thu, 28 Jun 2018 08:42:17 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/noncompile/pr55976-1.c | 1 + 2 files changed, 7 insertions(+) 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. */ -- 2.30.2