+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
// 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);
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; };
};
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;
}