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]

[Testsuite PATCH, committed] Adjust testcases to private ctor/dtorwarning change


Hi

This patch updates a couple testcase that fails due to a recent 
changed behaviour of warning about classes with private constructors
and destructors.  Installed to main trunk.

--Kriang


2003-05-12  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

	* g++.old-deja/g++.brendan/ns1.C: Remove private member warning.
	* g++.old-deja/g++.robertl/eb71.C: Likewise.
	* g++.old-deja/g++.brendan/warnings1.C: Add -Wctor-dtor-privacy.
	* g++.old-deja/g++.other/warn3.C: Likewise.

diff -cprN gcc-main-save/gcc/testsuite/g++.old-deja/g++.brendan/ns1.C gcc-main-new/gcc/testsuite/g++.old-deja/g++.brendan/ns1.C
*** gcc-main-save/gcc/testsuite/g++.old-deja/g++.brendan/ns1.C	Thu May  1 18:34:47 2003
--- gcc-main-new/gcc/testsuite/g++.old-deja/g++.brendan/ns1.C	Mon May 12 22:44:34 2003
*************** struct B 
*** 7,13 ****
  };
    
  class C 
! { // { dg-error "" }  warning
    int g();
  };
  
--- 7,13 ----
  };
    
  class C 
! {
    int g();
  };
  
diff -cprN gcc-main-save/gcc/testsuite/g++.old-deja/g++.brendan/warnings1.C gcc-main-new/gcc/testsuite/g++.old-deja/g++.brendan/warnings1.C
*** gcc-main-save/gcc/testsuite/g++.old-deja/g++.brendan/warnings1.C	Thu May  1 18:34:57 2003
--- gcc-main-new/gcc/testsuite/g++.old-deja/g++.brendan/warnings1.C	Mon May 12 22:45:39 2003
***************
*** 1,4 ****
--- 1,5 ----
  // { dg-do assemble  }
+ // { dg-options "-Wctor-dtor-privacy" }
  // GROUPS passed warnings
  // there should be a warning about foo only defining private methods
  class foo { // { dg-error "" } .*
diff -cprN gcc-main-save/gcc/testsuite/g++.old-deja/g++.other/warn3.C gcc-main-new/gcc/testsuite/g++.old-deja/g++.other/warn3.C
*** gcc-main-save/gcc/testsuite/g++.old-deja/g++.other/warn3.C	Thu May  1 18:35:21 2003
--- gcc-main-new/gcc/testsuite/g++.old-deja/g++.other/warn3.C	Mon May 12 22:47:12 2003
***************
*** 1,4 ****
--- 1,5 ----
  // { dg-do assemble  }
+ // { dg-options "-Wctor-dtor-privacy" }
  
  class A {
  };
diff -cprN gcc-main-save/gcc/testsuite/g++.old-deja/g++.robertl/eb71.C gcc-main-new/gcc/testsuite/g++.old-deja/g++.robertl/eb71.C
*** gcc-main-save/gcc/testsuite/g++.old-deja/g++.robertl/eb71.C	Thu May  1 18:35:34 2003
--- gcc-main-new/gcc/testsuite/g++.old-deja/g++.robertl/eb71.C	Mon May 12 22:48:55 2003
*************** friend class   D;
*** 15,21 ****
    unsigned      counter;
  };
  
! class   D {		//{ dg-warning "" } only private members
  
    int                   ins( B*&);
  };
--- 15,21 ----
    unsigned      counter;
  };
  
! class   D {
  
    int                   ins( B*&);
  };


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