aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-10-26 23:17:35 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-10-26 23:17:35 +0000
commit140c3b7e9f577f8b01f6fbf8520dc53df97bfe59 (patch)
treef9111d1b1c06b8c7cd114eea9187b76af7ec310c /gcc/testsuite
parent8eb99146fb0cd70a29d359508fe27bfb4767cb8c (diff)
downloadgcc-140c3b7e9f577f8b01f6fbf8520dc53df97bfe59.zip
gcc-140c3b7e9f577f8b01f6fbf8520dc53df97bfe59.tar.gz
gcc-140c3b7e9f577f8b01f6fbf8520dc53df97bfe59.tar.bz2
label2.C: Tweak to work with V3.
* g++.old-deja/g++.brendan/label2.C: Tweak to work with V3. * g++.old-deja/g++.law/builtin1.C: Likewise. * g++.old-deja/g++.law/ctors10.C: Likewise. * g++.old-deja/g++.law/virtual3.C: Likewise. * g++.old-deja/g++.mike/p658.C: Likewise. * g++.old-deja/g++.other/sibcall1.C: Likewise. * g++.old-deja/g++.other/vaarg2.C: Likewise. * g++.old-deja/g++.robertl/eb124.C: Likewise. * g++.old-deja/g++.robertl/eb44.C: Likewise. * g++.old-deja/g++.robertl/eb77.C: Likewise. * include/backward/streambuf.h: New file. From-SVN: r37077
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog13
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/label2.C3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/builtin1.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/ctors10.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/virtual3.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/p658.C3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/sibcall1.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/vaarg2.C4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb124.C4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb44.C3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb77.C4
11 files changed, 29 insertions, 13 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c714459..65d5ae8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,16 @@
+2000-10-26 Mark Mitchell <mark@codesourcery.com>
+
+ * g++.old-deja/g++.brendan/label2.C: Tweak to work with V3.
+ * g++.old-deja/g++.law/builtin1.C: Likewise.
+ * g++.old-deja/g++.law/ctors10.C: Likewise.
+ * g++.old-deja/g++.law/virtual3.C: Likewise.
+ * g++.old-deja/g++.mike/p658.C: Likewise.
+ * g++.old-deja/g++.other/sibcall1.C: Likewise.
+ * g++.old-deja/g++.other/vaarg2.C: Likewise.
+ * g++.old-deja/g++.robertl/eb124.C: Likewise.
+ * g++.old-deja/g++.robertl/eb44.C: Likewise.
+ * g++.old-deja/g++.robertl/eb77.C: Likewise.
+
2000-10-26 Nathan Sidwell <nathan@codesourcery.com>
* gcc.c-torture/compile/20001024-1.c: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/label2.C b/gcc/testsuite/g++.old-deja/g++.brendan/label2.C
index bce2112..5abdb15 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/label2.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/label2.C
@@ -1,5 +1,8 @@
// Build don't link:
// GROUPS passed labels
+
+extern "C" void abort();
+
class X {
public:
X();
diff --git a/gcc/testsuite/g++.old-deja/g++.law/builtin1.C b/gcc/testsuite/g++.old-deja/g++.law/builtin1.C
index e9b4654..86a91e7 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/builtin1.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/builtin1.C
@@ -12,6 +12,6 @@ extern "C" void* alloca( __SIZE_TYPE__ );
extern "C" int printf (const char *, ...);
void* junk() {
- return alloca(10);
+ return std::alloca(10);
}
main() { printf ("PASS\n");}
diff --git a/gcc/testsuite/g++.old-deja/g++.law/ctors10.C b/gcc/testsuite/g++.old-deja/g++.law/ctors10.C
index 213b798..6520087 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/ctors10.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/ctors10.C
@@ -13,7 +13,7 @@ class Class
class Err : public ostream
{
public:
- Err(void) : ostream() { }
+ Err(void) : ostream(NULL) { }
~Err(void) { }
};
public:
diff --git a/gcc/testsuite/g++.old-deja/g++.law/virtual3.C b/gcc/testsuite/g++.old-deja/g++.law/virtual3.C
index d131da4..92e7db8 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/virtual3.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/virtual3.C
@@ -29,7 +29,7 @@ BugStream& BugStream::eval()
cerr << s << endl;
// reset the stream for the next command
- clear(0);
+ clear(ios::goodbit);
rdbuf()->freeze(0);
seekp(0);
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p658.C b/gcc/testsuite/g++.old-deja/g++.mike/p658.C
index 14658f0..842ae8b 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/p658.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/p658.C
@@ -1,8 +1,7 @@
// prms-id: 658
#include <ostream.h>
-
-extern "C" void abort();
+#include <stdlib.h>
/* We may not find the libg++ <bool.h>. */
#ifndef FALSE
diff --git a/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C b/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C
index 8add4b8..99a1dc1 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C
@@ -1,6 +1,6 @@
// Special g++ Options: -O2
-#include <iostream>
+#include <iostream.h>
ostream& foo (char *x, ostream &y)
{
diff --git a/gcc/testsuite/g++.old-deja/g++.other/vaarg2.C b/gcc/testsuite/g++.old-deja/g++.other/vaarg2.C
index aca5e21..fe1fa7e 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/vaarg2.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/vaarg2.C
@@ -1,10 +1,10 @@
-// Copyright (C) 1999 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 4 Oct 1999 <nathan@acm.org>
// Make sure we can deal with POD aggregate in va_args
#include <stdarg.h>
-extern void abort ();
+extern "C" void abort ();
struct X {int m;};
struct Y {int a; int b; int c; int d; int e; int f;};
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C
index c9c7395..92fa872 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C
@@ -1,3 +1,5 @@
//Build don't link:
#include <stdexcept>
-class X : public std::runtime_error {};
+class X : public std::runtime_error {
+ X ();
+};
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C
index b02b9aa..04ff13d 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C
@@ -31,6 +31,5 @@ ostream& operator<< (ostream& out, const Vector<char>&)
int main()
{
Vector<char> vc;
- ostream out;
- out << vc;
+ cout << vc;
}
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C
index 206b27d..d37b3ea 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C
@@ -12,8 +12,8 @@ main(int, char* [])
int nLine = 0;
while( true ) {
- char* line = 0;
- s.gets(&line);
+ char line[100];
+ s.get(line, 100);
if( ! line ) {
break;