From: Theodore Papadopoulo Date: Mon, 25 Sep 2000 22:06:30 +0000 (+0200) Subject: crash20.C: Make ready for libstdc++-v3. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dcbd43e030914368ca0b5c089dc32cf8a208113d;p=gcc.git crash20.C: Make ready for libstdc++-v3. 2000-09-25 Theodore Papadopoulo * 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index db2f0847c6a..e3fb537e6aa 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2000-09-25 Theodore Papadopoulo + + * 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 * gcc.c-torture/execute/20000914-1.c: Declare malloc. diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash20.C b/gcc/testsuite/g++.old-deja/g++.other/crash20.C index 08e42fdf190..bf4370aad1d 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/crash20.C +++ b/gcc/testsuite/g++.old-deja/g++.other/crash20.C @@ -32,7 +32,7 @@ int main () { GcspFlags::btmFlag f; - const type_info& ti = typeid (f); + const std::type_info& ti = typeid (f); return 0; } diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline14.C b/gcc/testsuite/g++.old-deja/g++.other/inline14.C index 7a50fab0a5d..5a7ea4bf2a0 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/inline14.C +++ b/gcc/testsuite/g++.old-deja/g++.other/inline14.C @@ -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 -inline ostream& operator<< (ostream& out, const TC &c) +inline std::ostream& operator<< (std::ostream& out, const TC &c) { c.getIdent().printTo(out); return out; @@ -42,8 +42,8 @@ inline ostream& operator<< (ostream& out, const TC &c) void foo(const TC &c) { - cerr << c + std::cerr << c << ": " // This line is crucial! << c - << endl; + << std::endl; } diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C b/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C index 77013c4248d..34e9c9de109 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C @@ -21,7 +21,7 @@ bool is_C (const T&) { }; int main() { - cout << "should be true: " << is_C(C()) << endl; - cout << "should be false: " << is_C(D()) << endl; + std::cout << "should be true: " << is_C(C()) << std::endl; + std::cout << "should be false: " << is_C(D()) << std::endl; return 0; }