From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11455 invoked by alias); 14 Oct 2009 15:21:41 -0000 Received: (qmail 11447 invoked by uid 22791); 14 Oct 2009 15:21:40 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Oct 2009 15:21:33 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9EFLVHd008296; Wed, 14 Oct 2009 11:21:31 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9EFLUG1010952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Oct 2009 11:21:31 -0400 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.2/8.14.2/Submit) id n9EFLUN7008172; Wed, 14 Oct 2009 17:21:30 +0200 Date: Wed, 14 Oct 2009 15:28:00 -0000 From: Jakub Jelinek To: Janis Johnson Cc: gcc-patches@gcc.gnu.org Subject: [testsuite] Fix up attribute_plugin-test-1.C (PR testsuite/41707) Message-ID: <20091014152130.GC14664@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg00914.txt.bz2 Hi! Must have missed this regression when testing the BUILTINS_LOCATION patch. THe problem is that it calls warning (0, "...") from a callback without any specific location, so now is reported at :0:0 (which is IMHO correct). Ok for trunk? 2009-10-14 Jakub Jelinek PR testsuite/41707 * g++.dg/plugin/attribute_plugin-test-1.C: Expect the first warning on line 0 instead of 1. --- gcc/testsuite/g++.dg/plugin/attribute_plugin-test-1.C.jj 2009-05-14 09:33:17.000000000 +0200 +++ gcc/testsuite/g++.dg/plugin/attribute_plugin-test-1.C 2009-10-14 17:12:12.000000000 +0200 @@ -1,4 +1,4 @@ -// { dg-warning "Callback to register attributes" } +// { dg-warning "Callback to register attributes" "" { target *-*-* } 0 } void normal_func (char c, char c2); void normal_func (char __attribute__((user("param"))) c, char); Jakub