aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1997-09-11 16:00:02 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-11 10:00:02 -0600
commit45591aaf4d0bbed245a143235383dc125f822ece (patch)
tree2d3ba310435f4a7130bf0a69f3496bcedd1f76ac
parent9687fea5e07f69ac6b7893407a18cc5c1224694e (diff)
downloadgcc-45591aaf4d0bbed245a143235383dc125f822ece.zip
gcc-45591aaf4d0bbed245a143235383dc125f822ece.tar.gz
gcc-45591aaf4d0bbed245a143235383dc125f822ece.tar.bz2
crash20.C: Rework to avoid libg++.
* 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
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/crash20.C3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/crash30.C4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/crash39.C30
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/operators4.C3
5 files changed, 41 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7e6cda1..e08f557 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C
index 060be1c..7704b98 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C
@@ -1,6 +1,7 @@
// Build don't link:
// GROUPS passed old-abort
-#include <Complex.h>
+#include <complex>
+typedef complex<double> Complex;
Complex ComputeVVself()
{
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C
index ac73525..b54fe19 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C
@@ -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"};
}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
index f267abd..f2b33de 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
@@ -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 ()) {}};
diff --git a/gcc/testsuite/g++.old-deja/g++.law/operators4.C b/gcc/testsuite/g++.old-deja/g++.law/operators4.C
index 259d3e5..e5df81d 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/operators4.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/operators4.C
@@ -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 {