crash20.C: Make ready for libstdc++-v3.
authorTheodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
Mon, 25 Sep 2000 22:06:30 +0000 (00:06 +0200)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 25 Sep 2000 22:06:30 +0000 (22:06 +0000)
2000-09-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>

* g++.old-deja/g++.other/crash20.C: Make ready for libstdc++-v3.
* g++.old-deja/g++.pt/ttp62.C: Same.
* g++.old-deja/g++.other/inline14.C: Same.

From-SVN: r36633

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/crash20.C
gcc/testsuite/g++.old-deja/g++.other/inline14.C
gcc/testsuite/g++.old-deja/g++.pt/ttp62.C

index db2f0847c6a439764f262029ed31705ba601ca4e..e3fb537e6aa2f18cf2488ccc1c3fe2d12294eead 100644 (file)
@@ -1,3 +1,9 @@
+2000-09-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
+
+       * g++.old-deja/g++.other/crash20.C: Make ready for libstdc++-v3.
+       * g++.old-deja/g++.pt/ttp62.C: Same.
+       * g++.old-deja/g++.other/inline14.C: Same.
+
 2000-09-24  Richard Henderson  <rth@cygnus.com>
 
        * gcc.c-torture/execute/20000914-1.c: Declare malloc.
index 08e42fdf1906fe33b2f7aa82964f9dd73b736249..bf4370aad1d618b4d0d945a4a6e37effebadc16d 100644 (file)
@@ -32,7 +32,7 @@ int
 main ()
 {
   GcspFlags::btmFlag<GcspFlags::OffYes> f;
-  const type_info& ti = typeid (f);
+  const std::type_info& ti = typeid (f);
   return 0;
 }
 
index 7a50fab0a5d6cdb6cb238f70e244819c4a9c6722..5a7ea4bf2a0faf6dc6b438aa7de464f861153f6e 100644 (file)
@@ -7,7 +7,7 @@ struct IDENT
     {
     enum TYPE { Variable, Constant } type;
 
-    ostream& printTo(ostream& out) const
+    std::ostream& printTo(std::ostream& out) const
        {
        switch (type)
            {
@@ -34,7 +34,7 @@ struct TC
     };
 
 template <class T>
-inline ostream& operator<< (ostream& out, const TC<T> &c)
+inline std::ostream& operator<< (std::ostream& out, const TC<T> &c)
     {
     c.getIdent().printTo(out);
     return out;
@@ -42,8 +42,8 @@ inline ostream& operator<< (ostream& out, const TC<T> &c)
 
 void foo(const TC<IDENT> &c)
     {
-    cerr << c 
+    std::cerr << c 
          << ": " // This line is crucial!
          << c
-         << endl;
+         << std::endl;
     }
index 77013c4248d7f3f84738db6c8e59108ad43fd211..34e9c9de109838d9a3397eab701e3e8915321cc3 100644 (file)
@@ -21,7 +21,7 @@ bool is_C (const T&) {
 };
 
 int main() {
-   cout << "should be true: " << is_C(C<int>()) << endl;
-   cout << "should be false: " << is_C(D<int>()) << endl;
+   std::cout << "should be true: " << is_C(C<int>()) << std::endl;
+   std::cout << "should be false: " << is_C(D<int>()) << std::endl;
    return 0;
 }