OSDN Git Service

* g++.old-deja/g++.brendan/crash20.C: Rework to avoid libg++.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Sep 1997 16:00:02 +0000 (16:00 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Sep 1997 16:00:02 +0000 (16:00 +0000)
        * g++.old-deja/g++.brendan/crash30.C: Likewise.
        * g++.old-deja/g++.brendan/crash39.C: Likewise.
        * g++.old-deja/g++.law/operators4.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15407 138bc75d-0d04-0410-961f-82ee72b054a4

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 7e6cda1..e08f557 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 060be1c..7704b98 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 ac73525..b54fe19 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 f267abd..f2b33de 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 259d3e5..e5df81d 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 {