How to write testcase with two warnings on one line?

Feng Wang wf_cs@yahoo.com
Tue Jun 21 14:21:00 GMT 2005


Hi,

I want to write a testcase. The compiler gives two separated warnings on one
statement. How to write this with Dejagnu? 

I tried:
 { dg-warning "Warning1" "Warning2" }
and
{ dg-warning "Warning1" 8}
{ dg-warning "Warning2" 8}
8 is the line number of the statment.
But alwarys get excess errors.

The testcase is used to test one patch for gfortran. Sorry have no more
concrete program for this question.


Best Regards,
Feng Wang

--
Creative Compiler Research Group,
National University of Defense Technology, China.


		
___________________________________________________________ 
ÑÅ»¢Ãâ·ÑGÓÊÏ䣭No.1µÄ·À¶¾·ÀÀ¬»ø³¬´óÓÊÏä 
http://cn.mail.yahoo.com/?id=77072



More information about the Gcc mailing list