From dbe1241ef3cae41f34c6b230749f0149db01c3cb Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 29 Jan 2015 16:10:08 +0000 Subject: PR c++/49508 * semantics.c (finish_return_stmt): Suppress -Wreturn-type on erroneous return statement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220252 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/g++.old-deja/g++.jason/report.C | 3 --- 1 file changed, 3 deletions(-) (limited to 'gcc/testsuite/g++.old-deja') diff --git a/gcc/testsuite/g++.old-deja/g++.jason/report.C b/gcc/testsuite/g++.old-deja/g++.jason/report.C index b595662c228..e1079cfb0aa 100644 --- a/gcc/testsuite/g++.old-deja/g++.jason/report.C +++ b/gcc/testsuite/g++.old-deja/g++.jason/report.C @@ -72,6 +72,3 @@ int darg (char X::*p) { undef3 (1); // { dg-error "" } implicit declaration } // { dg-warning "no return statement" } - -// { dg-message "warning: control reaches end of non-void function" "" { target *-*-* } 36 } -// { dg-message "warning: control reaches end of non-void function" "" { target *-*-* } 65 } -- cgit v1.2.1