This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
回复: Re: How to write testcase with two warnings on one line?
- From: Feng Wang <wf_cs at yahoo dot com>
- To: Tobias dot Schlueter at Physik dot Uni-Muenchen dot DE
- Cc: fortran at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Tue, 21 Jun 2005 22:54:18 +0800 (CST)
- Subject: 回复: Re: How to write testcase with two warnings on one line?
--- Tobias.Schlueter@Physik.Uni-Muenchen.DE写道:
> Quoting Feng Wang <wf_cs@yahoo.com>:
>
> > Hi,
> >
> > I want to write a testcase. The compiler gives two separated warnings on
> one
> > statement. How to write this with Dejagnu?
>
> If the loci are different, it is
> possible to split the line between the warnings and then proceed as usual,
> say:
> do_first_thing & ! { dg-warning "a" }
> & do_second_thing ! { dg-warning "b" }
>
This is ok. Thanks, Tobi.
Best Regards,
Feng Wang
--
Creative Compiler Research Group,
National University of Defense Technology, China.
___________________________________________________________
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱
http://cn.mail.yahoo.com/?id=77071