From patchwork Wed Feb 9 19:33:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 82523 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 6247FB70A3 for ; Thu, 10 Feb 2011 06:33:47 +1100 (EST) Received: (qmail 19961 invoked by alias); 9 Feb 2011 19:33:45 -0000 Received: (qmail 19946 invoked by uid 22791); 9 Feb 2011 19:33:42 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Feb 2011 19:33:37 +0000 Received: from eggs.gnu.org ([140.186.70.92]:49626) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1PnFnD-0007mX-Fy for gcc-patches@gnu.org; Wed, 09 Feb 2011 14:33:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnFnC-0007xh-3H for gcc-patches@gnu.org; Wed, 09 Feb 2011 14:33:35 -0500 Received: from smtp111.iad.emailsrvr.com ([207.97.245.111]:48503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnFnC-0007xU-0o for gcc-patches@gnu.org; Wed, 09 Feb 2011 14:33:34 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp51.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 79CB420A66 for ; Wed, 9 Feb 2011 14:33:33 -0500 (EST) Received: from dynamic11.wm-web.iad.mlsrvr.com (dynamic11.wm-web.iad1a.rsapps.net [192.168.2.218]) by smtp51.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 66418204BB for ; Wed, 9 Feb 2011 14:33:33 -0500 (EST) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic11.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id 3C756E008A for ; Wed, 9 Feb 2011 14:33:33 -0500 (EST) Received: by www2.webmail.us (Authenticated sender: nicola.pero@meta-innovation.com, from: nicola.pero@meta-innovation.com) with HTTP; Wed, 9 Feb 2011 20:33:33 +0100 (CET) Date: Wed, 9 Feb 2011 20:33:33 +0100 (CET) Subject: ObjC++: update testcase From: "Nicola Pero" To: "gcc-patches@gnu.org" MIME-Version: 1.0 X-Type: plain Message-ID: <1297280013.24633352@192.168.4.58> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 207.97.245.111 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 + + * obj-c++.dg/attributes/method-noreturn-1.mm: Updated test for + change (PR 47646) in compiler warnings. + 2011-02-09 Janus Weil 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 ();