This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: C++ testcases
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: C++ testcases
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 22 Nov 2000 11:03:57 -0800
- Organization: CodeSourcery, LLC
Recent changes to V3 (which removed <strstream> and which put
strstream and friends in namespace std) caused some test cases to
fail.
These changes to the testsuite put things back to passing. If V3
decides to put strstream back in the global namespace, the tests
should work. There's no harm in changing the testsuite this way,
since it wasn't designed to test the properties that changed.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
Index: g++.old-deja/g++.law/virtual3.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.law/virtual3.C,v
retrieving revision 1.4
diff -c -p -r1.4 virtual3.C
*** virtual3.C 2000/10/26 23:17:34 1.4
--- virtual3.C 2000/11/22 19:01:21
***************
*** 8,13 ****
--- 8,14 ----
#include <iostream.h>
#include <strstream.h>
+ using namespace std;
class BugStream : public ostrstream {
public:
Index: g++.old-deja/g++.other/headers1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.other/headers1.C,v
retrieving revision 1.1
diff -c -p -r1.1 headers1.C
*** headers1.C 2000/06/11 03:34:54 1.1
--- headers1.C 2000/11/22 19:01:21
***************
*** 41,47 ****
#include <stack>
#include <stdexcept>
#include <string>
- #include <strstream>
#include <typeinfo>
#include <utility>
#include <valarray>
--- 41,46 ----
Index: g++.old-deja/g++.robertl/eb21.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eb21.C,v
retrieving revision 1.3
diff -c -p -r1.3 eb21.C
*** eb21.C 2000/06/12 23:48:13 1.3
--- eb21.C 2000/11/22 19:01:23
***************
*** 2,7 ****
--- 2,9 ----
#include <strstream.h>
+ using namespace std;
+
/*----------------------------------------*/
struct connection_t {
Index: g++.old-deja/g++.robertl/eb39.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eb39.C,v
retrieving revision 1.3
diff -c -p -r1.3 eb39.C
*** eb39.C 2000/05/28 05:38:02 1.3
--- eb39.C 2000/11/22 19:01:23
***************
*** 6,11 ****
--- 6,13 ----
#include <strstream.h>
#include <string.h>
+ using namespace std;
+
extern bool foo2 (ostream &out, istream &in);
bool
Index: g++.old-deja/g++.robertl/eb77.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C,v
retrieving revision 1.3
diff -c -p -r1.3 eb77.C
*** eb77.C 2000/10/26 23:17:35 1.3
--- eb77.C 2000/11/22 19:01:23
***************
*** 1,6 ****
--- 1,8 ----
#include <stream.h>
#include <strstream.h>
+ using namespace std;
+
int
main(int, char* [])
{