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]

[PATCH] Prepare the testsuite for libstdc++-v3



I believe that the following changes do not create regressions with 
the current libstdc++ (I have not checked though). However, not correcting
those creates regressions with libstdc++-v3.

More general question, if libstdc++-v3 is the default for gcc-3.0, 
shouldn't start to prepare the testsuite ?? 

Index: g++.old-deja/g++.other/crash20.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.other/crash20.C,v
retrieving revision 1.1
diff -c -3 -p -r1.1 crash20.C
*** crash20.C	2000/07/23 19:59:41	1.1
--- crash20.C	2000/09/21 18:58:48
*************** int
*** 32,38 ****
  main ()
  {
    GcspFlags::btmFlag<GcspFlags::OffYes> f;
!   const type_info& ti = typeid (f);
    return 0;
  }
  
--- 32,38 ----
  main ()
  {
    GcspFlags::btmFlag<GcspFlags::OffYes> f;
!   const std::type_info& ti = typeid (f);
    return 0;
  }
  
Index: g++.old-deja/g++.other/inline14.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.other/inline14.C,v
retrieving revision 1.1
diff -c -3 -p -r1.1 inline14.C
*** inline14.C	2000/09/20 18:28:36	1.1
--- inline14.C	2000/09/21 18:58:48
*************** struct IDENT
*** 7,13 ****
      {
      enum TYPE { Variable, Constant } type;
  
!     ostream& printTo(ostream& out) const
  	{
  	switch (type)
  	    {
--- 7,13 ----
      {
      enum TYPE { Variable, Constant } type;
  
!     std::ostream& printTo(std::ostream& out) const
  	{
  	switch (type)
  	    {
*************** struct TC
*** 34,40 ****
      };
  
  template <class T>
! inline ostream& operator<< (ostream& out, const TC<T> &c)
      {
      c.getIdent().printTo(out);
      return out;
--- 34,40 ----
      };
  
  template <class T>
! inline std::ostream& operator<< (std::ostream& out, const TC<T> &c)
      {
      c.getIdent().printTo(out);
      return out;
*************** inline ostream& operator<< (ostream& out
*** 42,49 ****
  
  void foo(const TC<IDENT> &c)
      {
!     cerr << c 
!          << ": " // This line is crucial!
!          << c
!          << endl;
      }
--- 42,49 ----
  
  void foo(const TC<IDENT> &c)
      {
!     std::cerr << c 
!          	  << ": " // This line is crucial!
!          	  << c
!          	  << endl;
      }
Index: g++.old-deja/g++.pt/ttp62.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C,v
retrieving revision 1.1
diff -c -3 -p -r1.1 ttp62.C
*** ttp62.C	2000/09/05 01:01:39	1.1
--- ttp62.C	2000/09/21 18:58:48
*************** bool is_C (const T&) {
*** 21,27 ****
  };
  
  int main() {
!    cout << "should be true: " << is_C(C<int>()) << endl;
!    cout << "should be false: " << is_C(D<int>()) << endl;
     return 0;
  }
--- 21,27 ----
  };
  
  int main() {
!    std::cout << "should be true: " << is_C(C<int>()) << std::endl;
!    std::cout << "should be false: " << is_C(D<int>()) << std::endl;
     return 0;
  }


 --------------------------------------------------------------------
 Theodore Papadopoulo
 Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
 --------------------------------------------------------------------



PGP signature


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