summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-16 01:59:01 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-16 01:59:01 +0000
commit280f99f88a2af09e100e79d9e5d52f2b289125b5 (patch)
treeced793e4c3369374717d2b02e17095eff8900aee /gcc/testsuite
parentb878f80a0db22f72cc430aae5614803525668787 (diff)
downloadgcc-280f99f88a2af09e100e79d9e5d52f2b289125b5.tar.gz
2001-05-15 Benjamin Kosnik <bkoz@redhat.com>
* g++.old-deja/g++.robertl/eb27.C: Convert. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42126 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb27.C10
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e003fe14c95..5c3469f5163 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-05-15 Benjamin Kosnik <bkoz@redhat.com>
+
+ * g++.old-deja/g++.robertl/eb27.C: Convert.
+
2001-05-15 Nick Clifton <nickc@cambridge.redhat.com>
* g++.dg/friend-warn.C: New test. Do not warn about friend
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb27.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb27.C
index 31012bee0d8..3d32f1c0028 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb27.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb27.C
@@ -7,7 +7,7 @@
// for the test<T> record_type. This is marked as an expected failure for now,
// until we actually fix it.
-#include <iostream.h>
+#include <iostream>
template <class T> class test;
template <class T> test<T> operator + (const test<T>& a, const test<T>& b);
@@ -22,7 +22,7 @@ class test
test (const T& a) { elem = a; };
test<T>& operator += (const test<T>& a) { elem += a.elem; return *this; };
friend test<T> operator + <> (const test<T>&, const test<T>&);
- friend ostream& operator << (ostream& os, const test<T>& a)
+ friend std::ostream& operator << (std::ostream& os, const test<T>& a)
{ return os << a.elem; };
};
@@ -34,6 +34,8 @@ test<T> operator + (const test<T>& a, const test<T>& b) return c(a);
int main()
{
test<int> x, y;
- x += 5; cout << x << endl;
- y = x + test<int>(2); cout << y << endl;
+ x += 5;
+ std::cout << x << std::endl;
+ y = x + test<int>(2);
+ std::cout << y << std::endl;
}