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.pa...@oracle.com>

        PR c/55976
        * gcc.dg/noncompile/pr55976-1.c: Add dg-prune-output for extraneous
          message causing unexpected test FAIL.
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.  */
 

Reply via email to