From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3181 invoked by alias); 26 Jul 2014 21:57:15 -0000 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 Received: (qmail 3171 invoked by uid 89); 26 Jul 2014 21:57:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 26 Jul 2014 21:57:14 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6QLvCJo002888 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 26 Jul 2014 17:57:12 -0400 Received: from localhost.localdomain (ovpn-116-18.ams2.redhat.com [10.36.116.18]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6QLumjO024074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 26 Jul 2014 17:57:09 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.14.7/8.14.7) with ESMTP id s6QLuSYi017018; Sat, 26 Jul 2014 23:56:37 +0200 Received: (from jakub@localhost) by localhost.localdomain (8.14.7/8.14.7/Submit) id s6QLuBvx017015; Sat, 26 Jul 2014 23:56:11 +0200 Date: Sun, 27 Jul 2014 02:12:00 -0000 From: Jakub Jelinek To: Marek Polacek Cc: GCC Patches Subject: Re: [committed] Fix pr61077.c test Message-ID: <20140726215610.GH2397@laptop.redhat.com> Reply-To: Jakub Jelinek References: <20140726163029.GN30336@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140726163029.GN30336@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg01819.txt.bz2 On Sat, Jul 26, 2014 at 06:30:30PM +0200, Marek Polacek wrote: > Marc reported that using .* regexp can cause spurious fails, so > fixed by using \[^\n\]* instead. > > Tested on x86_64-linux, applying to trunk. > > 2014-07-26 Marek Polacek > > * gcc.dg/pr61077.c: Use \[^\n\]* instead of .* in the regexp. > > diff --git gcc/testsuite/gcc.dg/pr61077.c gcc/testsuite/gcc.dg/pr61077.c > index c0513f7..e29f23c 100644 > --- gcc/testsuite/gcc.dg/pr61077.c > +++ gcc/testsuite/gcc.dg/pr61077.c > @@ -5,8 +5,8 @@ > _Atomic int > main (_Atomic int argc, _Atomic char **argv) > /* { dg-warning "qualified return type" "return" { target *-*-* } 6 } */ > -/* { dg-warning "qualified parameter type.*int" "parameter" { target *-*-* } 6 } */ > -/* { dg-warning "qualified parameter type.*char" "parameter" { target *-*-* } 6 } */ > +/* { dg-warning "qualified parameter type\[^\n\]*int" "parameter" { target *-*-* } 6 } */ > +/* { dg-warning "qualified parameter type\[^\n\]*char" "parameter" { target *-*-* } 6 } */ Usually we use \[^\n\r\] instead. Jakub