This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to write testcase with two warnings on one line?
- From: Feng Wang <wf_cs at yahoo dot com>
- To: fortran at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Tue, 21 Jun 2005 22:21:35 +0800 (CST)
- Subject: 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