This is the mail archive of the gcc-patches@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]

PATCH: Remove unncessary dg-error comment



This test had one more dg-error line than needed; we already filter
the error messages in question.

Tested by running the test on i686-pc-linux-gnu.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>

	* g++.dg/warn/Wshadow-1.C: Remove unncessary dg-error line.

Index: gcc/testsuite/g++.dg/warn/Wshadow-1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/warn/Wshadow-1.C,v
retrieving revision 1.1
diff -c -p -r1.1 Wshadow-1.C
*** gcc/testsuite/g++.dg/warn/Wshadow-1.C	8 Nov 2001 19:04:43 -0000	1.1
--- gcc/testsuite/g++.dg/warn/Wshadow-1.C	20 May 2002 04:46:55 -0000
***************
*** 1,4 ****
! /* Copyright (C) 2001, 2002 Free Software Foundation, Inc.  */
  
  /* { dg-do compile } */
  /* { dg-options -Wshadow } */
--- 1,4 ----
! /* Copyright (C) 2001, 2002 Free Software Foundation, Inc.  */
  
  /* { dg-do compile } */
  /* { dg-options -Wshadow } */
*************** void foo1 (int d)
*** 30,36 ****
    double d;			// { dg-error "shadows a parameter" }
  }
  
- // { dg-error "In member function" "ignored" { target *-*-* } 0 }
  void status::foo2 ()
  {
    int member;			// { dg-warning "shadows a member" }
--- 30,35 ----


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