From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31850 invoked by alias); 30 Jul 2002 06:22:10 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 31841 invoked from network); 30 Jul 2002 06:22:10 -0000 Received: from unknown (HELO monkey.daikokuya.co.uk) (213.152.55.49) by sources.redhat.com with SMTP; 30 Jul 2002 06:22:10 -0000 Received: from neil by monkey.daikokuya.co.uk with local (Exim 3.35 #1 (Debian)) id 17ZQNN-0001hk-00; Tue, 30 Jul 2002 07:20:57 +0100 Date: Tue, 30 Jul 2002 08:19:00 -0000 From: Neil Booth To: Devang Patel Cc: gcc@gcc.gnu.org Subject: Re: dejagnu testcase question Message-ID: <20020730062056.GE6050@daikokuya.co.uk> References: <20020730061543.GC6050@daikokuya.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020730061543.GC6050@daikokuya.co.uk> User-Agent: Mutt/1.4i X-SW-Source: 2002-07/txt/msg01406.txt.bz2 Neil Booth wrote:- > Devang Patel wrote:- > > > Hi, > > > > I have one question related to writing dejagnu test. > > I am preparing a patch to issue a warning in Objective-C. > > The warning is issued by compiler while it is generating > > selector tables at the end of compilation. At this time, > > the warning carries the line number which is one more > > than the size of source file. > > > > My questions is where do I put dg-warning in test ? > > You should probably fix it so that it doesn't output any > line number, or outputs an appropriate, valid line number. I should add that you can specify a line number explicitly in dejagnu markers; see e.g. ucs.c in gcc.dg/cpp/. Neil.