This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dejagnu testcase question
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Devang Patel <dpatel at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 30 Jul 2002 07:20:57 +0100
- Subject: Re: dejagnu testcase question
- References: <AB23B41C-A356-11D6-A35F-00039310EDEA@> <20020730061543.GC6050@daikokuya.co.uk>
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.