This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
ObjC++: update testcase
- From: "Nicola Pero" <nicola dot pero at meta-innovation dot com>
- To: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Date: Wed, 9 Feb 2011 20:33:33 +0100 (CET)
- Subject: ObjC++: update testcase
This patch fixes one ObjC++ testcase which is currently failing because
it has not been updated for changes in compiler warnings. The corresponding
ObjC testcase was updated when the compiler change was committed (yesterday),
but the ObjC++ one wasn't.
I just noticed the testsuite failures, and would like to remove the noise.
Ok to commit to trunk/4.6 ?
Thanks
Index: ChangeLog
===================================================================
--- ChangeLog (revision 169979)
+++ ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2011-02-09 Nicola Pero <nicola.pero@meta-innovation.com>
+
+ * obj-c++.dg/attributes/method-noreturn-1.mm: Updated test for
+ change (PR 47646) in compiler warnings.
+
2011-02-09 Janus Weil <janus@gcc.gnu.org>
PR fortran/47637
Index: obj-c++.dg/attributes/method-noreturn-1.mm
===================================================================
--- obj-c++.dg/attributes/method-noreturn-1.mm (revision 169979)
+++ obj-c++.dg/attributes/method-noreturn-1.mm (working copy)
@@ -18,11 +18,11 @@
+ (id) method1
{
return self; /* { dg-warning "function declared .noreturn. has a .return. statement" } */
-} /* { dg-warning ".noreturn. function does return" } */
+} /* { dg-warning ".noreturn. function does return" "" { target *-*-* } 20 } */
- (id) method2
{
return self; /* { dg-warning "function declared .noreturn. has a .return. statement" } */
-} /* { dg-warning ".noreturn. function does return" } */
+} /* { dg-warning ".noreturn. function does return" "" { target *-*-* } 24 } */
+ (id) method3
{
abort ();