From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24972 invoked by alias); 21 Jun 2005 14:21:54 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 24826 invoked by uid 22791); 21 Jun 2005 14:21:51 -0000 Received: from web15609.mail.cnb.yahoo.com (HELO web15609.mail.cnb.yahoo.com) (202.165.102.63) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Tue, 21 Jun 2005 14:21:51 +0000 Received: (qmail 17519 invoked by uid 60001); 21 Jun 2005 14:21:35 -0000 Message-ID: <20050621142135.17517.qmail@web15609.mail.cnb.yahoo.com> Received: from [220.192.154.205] by web15609.mail.cnb.yahoo.com via HTTP; Tue, 21 Jun 2005 22:21:35 CST Date: Tue, 21 Jun 2005 14:21:00 -0000 From: Feng Wang Subject: How to write testcase with two warnings on one line? To: fortran@gcc.gnu.org, gcc@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-06/txt/msg00934.txt.bz2 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