回复: Re: How to write testcase with two warnings on one line?
Feng Wang
wf_cs@yahoo.com
Tue Jun 21 14:54:00 GMT 2005
--- 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
More information about the Gcc
mailing list