OSDN Git Service

2001-05-15 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 May 2001 01:59:01 +0000 (01:59 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 May 2001 01:59:01 +0000 (01:59 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.robertl/eb27.C

index e003fe1..5c3469f 100644 (file)
@@ -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
index 31012be..3d32f1c 100644 (file)
@@ -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;
 }