crash20.C: Rework to avoid libg++.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 11 Sep 1997 16:00:02 +0000 (16:00 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 11 Sep 1997 16:00:02 +0000 (10:00 -0600)
        * g++.old-deja/g++.brendan/crash20.C: Rework to avoid libg++.
        * g++.old-deja/g++.brendan/crash30.C: Likewise.
        * g++.old-deja/g++.brendan/crash39.C: Likewise.
        * g++.old-deja/g++.law/operators4.C: Likewise.

From-SVN: r15407

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.brendan/crash20.C
gcc/testsuite/g++.old-deja/g++.brendan/crash30.C
gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
gcc/testsuite/g++.old-deja/g++.law/operators4.C

index 7e6cda1cba0e907c3b5afe8c9c79b6c0e5742d0b..e08f5577d57b100d58c43132ea297876f8d65eaf 100644 (file)
@@ -1,3 +1,10 @@
+Thu Sep 11 10:00:03 1997  Alexandre Oliva  (oliva@dcc.unicamp.br)
+
+       * g++.old-deja/g++.brendan/crash20.C: Rework to avoid libg++.
+       * g++.old-deja/g++.brendan/crash30.C: Likewise.
+       * g++.old-deja/g++.brendan/crash39.C: Likewise.
+       * g++.old-deja/g++.law/operators4.C: Likewise.
+
 Thu Sep 11 09:53:40 1997  Joe Buck  (jbuck@synopsys.com)
 
        * g++.old-deja/g++.mike/p658.C: eliminate <bool.h> use.
index 060be1c39f4d0e5b29747c959d0dba3091284b5b..7704b98ebd2e029fa407f88741c4d0161b4f9f41 100644 (file)
@@ -1,6 +1,7 @@
 // Build don't link: 
 // GROUPS passed old-abort
-#include <Complex.h>
+#include <complex>
+typedef complex<double> Complex;
 
 Complex ComputeVVself()
 {
index ac73525536e35ff7e7a1e2841f6d3394b9d8915d..b54fe19817ecfa50df56fd60cd77939bb669a3ea 100644 (file)
@@ -1,9 +1,9 @@
 // Build don't link: 
 // GROUPS passed old-abort
-#include <String.h>
+#include <string>
 
 main(void) {
 
-  String a[] = {"Hello"};
+  string a[] = {"Hello"};
 
 }
index f267abd61476d093bc399d51ef0b46f77c8efdb5..f2b33de1c170d03bf184db0b297207d27811252c 100644 (file)
@@ -1,8 +1,34 @@
 // Build don't link: 
 // Special g++ Options: -w
 // GROUPS passed old-abort
-#include <GetOpt.h>
-#include <String.h>
+//#include <GetOpt.h>
+#include <std.h>
+#include <stdio.h>
+
+class GetOpt
+{
+private:
+  static char *nextchar;
+   enum OrderingEnum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER };
+   OrderingEnum ordering;
+  static int first_nonopt;
+  static int last_nonopt;
+  void exchange (char **argv);
+public:
+  char *optarg;
+  int optind;
+  int opterr;
+  
+  int    nargc;
+  char **nargv;
+  const char  *noptstring;
+  
+  GetOpt (int argc, char **argv, const char *optstring);
+  int operator () (void);
+};
+//end <GetOpt.h>
+#include <string>
+
 class foo {public: foo () {}};
 class bar {public: bar (foo& dflt);};
 class baz: public bar {public: baz (): bar (foo ()) {}};
index 259d3e53f21a89653dfdbff3a31c4d7e7615deac..e5df81d3a29ddd4b773e9a5c16ea8d42f5d6e6c0 100644 (file)
@@ -5,7 +5,8 @@
 // Subject:  delete [size] pointer; Problem
 // Message-ID: <92Sep3.220137edt.30@jarvis.csri.toronto.edu>
 
-#include <Complex.h>
+#include <complex>
+typedef complex<double> Complex;
 #include <stdio.h>
 
 class Vector {