aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Pagan <dave.pagan@oracle.com>2018-06-28 08:42:17 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2018-06-28 08:42:17 +0000
commitb62dc9ca3c3d43721610a5325b570dceb36384d6 (patch)
treec068c14196b15561957d9f55b6d7130538bd5759 /gcc
parent62bb4a4b25f6176ad2b2902944e6a5058222b00a (diff)
downloadgcc-b62dc9ca3c3d43721610a5325b570dceb36384d6.zip
gcc-b62dc9ca3c3d43721610a5325b570dceb36384d6.tar.gz
gcc-b62dc9ca3c3d43721610a5325b570dceb36384d6.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/noncompile/pr55976-1.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4c3c927..e3a52b5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/noncompile/pr55976-1.c b/gcc/testsuite/gcc.dg/noncompile/pr55976-1.c
index b3e6328..d078990 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. */