This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to write testcase with two warnings on one line?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]